Campbell Ritchie wrote:You will need one .java file for each class marked public class at its beginning. The class Foo must be in a file called Foo.java.
If you put all your files in one directory, the different objects will have no difficulty finding each other to "talk to". Indeed, if there is any difficulty finding code, the compiler will complain and refuse to produce .class files, so you will know soon enough.
thanks, the other problem I have now, is that I have my two files, I have my code and everything else (I'm using eclipse if this helps) but the two files won't "talk to eachother" and none of them will compile and run. If I've figured this out correctly, I want MovieTestDrive to compile and run to read code from the other file.
here's what I've got for code:
It would be cool if I get the hang of OO as something tells me the majority of my programming (should I even reach that standard) will rely on it.
Thanks,
Edit by mw: Added CodeTags to preserve formatting.