Originally posted by Nicholas Cheung Your problem should be, as "getDay" is the name of the class, so do the method name is the same name, you should new the class object and then call its *getDay* method.
I am not sure whether you can name a method as same as the class name, in case you can, you should call it by:
This is exactly what is required to be done. You cannot call a method without the classname or object reference, unless it is present in the same class or inherited.
Joined: Nov 16, 2004
Cheers for all the info, ive handed it in now. Just amended it so it would run with the method in the class.
but I will go away and try what u've mentioned and get back to us's