Thanks Marilyn for the final nitpick on OOP-4 (Lookup) I tried to run the instructors solution but it didn't compile due to multiple public classes existing in the source file 'Lookup.java':
My question: Was it intended to divide the code, to create separate source-files for the classes Thing, Video, BookOnTape and Furniture and to compile then separately (this way it works on my machine)?
For convenience, it appears to be all in one file when we send assignments and solutions back and forth. However, in my opinion, it is better to keep one file per outer class.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Dec 11, 2006
Thank you both. However this was the first time for me to recognize that I declared my outer classes with the (implicit) package access modifier that keeps the whole thing running in one file as well as the compiler refuses to accept several public (means outer) classes in one .java file.