Originally posted by Barry Gaunt:
NO Inuka! You better give 1.6% back to Sun
Static methods cannot be overidden, they can only be hidden.
The final attribute also prevents hiding of static methods.
Hmm but isnt hiding a type of overriding
, meaning you can declare a method in the class that inherits the parent with the same signature, thats how I understood the question. But you are right thats why I said it is hiding above.
Even in the spec they talk about each in the same breath
java spec If a method declaration overrides or hides the declaration of another method.... so.... what is correct?
These types of questions realy confused the hell out of me when I did practice tests. Because some practice tests sometimes refereed to hiding as overriding.. and thats without considering the confusion with inner class terminology. Forutnately for me the real thing was very clear...(can I have my 1.6% back pleeeeaaaase
)
sorry Net... not trying to confuse you...
[ October 03, 2004: Message edited by: Inuka Vincit ]