Originally Posted by
Otis11
Um, yeah... you have to have all of these things contained within a class, just like your main method is contained within a class. The public is because you want to be able to make dot objects outside of the class, class designates it's a class, Dot() is the name of the class - this must be the same name as your constructor, and if you want to implement another class you simply say implements such-and-such. The only thing is if you say implements you MUST DEFINE EVERY METHOD within the class you are implementing... I didn't realize that till after my test back when I took it, and it hurt.
If you have any other questions I'll be up at ~6:15 am your time and I'll check this before I run to class.
Hope that answers it for ya. :up:
Oh, and not that it matters, but it's good coding practice to put your constructors before your accessor methods... I didn't do that. Sorry. :p: