Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by NavBot (vkp) v1.0

...

Wiki Markup
Note that "In a subclass, you can overload the methods inherited from the superclass. Such overloaded methods neither hide nor override the superclass methods—they are new methods, unique to the subclass." \[[Tutorials 2008|AA. JavaBibliography#Tutorials References#Tutorials 08]\].

Wiki Markup
Technically, a {{private}} method cannot be hidden or overridden. There is no requirement that {{private}} methods with the same signature in the subclass and the superclass, bear any relationship in terms of having the same return type or {{throws}} clause, the necessary conditions for _hiding_. \[[JLS 2005|AA. JavaBibliography#JLS References#JLS 05]\]. Consequently, there may be no _hiding_ when the methods have different return types or {{throws}} clauses.

...

Wiki Markup
\[[Tutorials 2008|AA. Java References#TutorialsBibliography#Tutorials 08]\] [Overriding and Hiding Methods|http://java.sun.com/docs/books/tutorial/java/IandI/override.html]
\[[Bloch 2005|AA. Java References#BlochBibliography#Bloch 05]\] Puzzle 48: All I Get Is Static
\[[JLS 2005|AA. Java References#JLSBibliography#JLS 05]\] 8.4.6.3 Requirements in Overriding and Hiding

...