posted 12 years ago
Hi Prasad,
Yes that makes perfect sense. Thanks very much for the commented example. I was a bit thrown by a Whizlabs question which was something like the following:
I had thought that this would fail at compile time because a non-static method (get) was accessing a static method (get1), but I can see now that it will compile fine because there will always only be one get1() method for a class (unless it's overloaded) so thee's no confusion as to which method will be accessed as there would be for non-static methods.
Cheers
Joe