|
-
December 2nd, 2008, 07:55 PM
#16
Re: Can't decipher errors
I didn't even realize it until you mentioned it there. I don't know why i didn't see it before about the class being in the class. Before i thought "I've done it before why doesn't it work now?" Then i realized they were in the same file not within the class. Thank you. I know it's not the best practice, but it'll take me some time (and some hard learned lessons) to get into the right practice. I've just not been very good at linking classes in separate files. Something about just never clicked for me and i always go lost while doing it.
What i think i'll do it is make mutators for each of the classes in their files and keep things separate
-
December 3rd, 2008, 05:45 AM
#17
Re: Can't decipher errors
 Originally Posted by jenseits
I know it's not the best practice, but it'll take me some time (and some hard learned lessons) to get into the right practice. I've just not been very good at linking classes in separate files. Something about just never clicked for me and i always go lost while doing it.
In that case you should drop everything and spend a couple of hours practising with trivial examples - or just put all your current classes into separate files and get them working - until you fully understand the relationship between classes, packages, and directories, and how to compile and run classes in separate files and packages. It's pretty simple once you grasp the basics. But if you leave something like this because you don't quite 'get' it, it can turn into a long-term problem - and you can't afford to be a little vague about this stuff.
If you want help understanding any of this, just ask - it always looks more complicated than it turns out to be.
A complex system that works in invariably found to have evolved from a simple system that worked...
J. Gall
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
December 3rd, 2008, 09:13 AM
#18
Re: Can't decipher errors
That's what i'm doing now. I managed to separate everything into its own file, now i'm practicing getting each one to work in the main program one at a time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|