Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sybex Flash Card Set#2 #48 Errata?  RSS feed

Charles O'Leary
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the definition of Hidden from Sybex Flash Card Set#2 #48 correct?

Overloaded methods share the same name but different signatures and have no polymorphic relationship. Overridden methods share the same signature and are replaced at runtime in all places it is defined. Hidden methods are share the same signature but are only replaced in the subclasses for which they are defined.

From page 263
... hidden methods only replace parent methods in the calls defined in the child class.
Alternatively, at runtime the parent version of a hidden method is always executed if the call to the method is defined in the parent class.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
Thoughts on deprecation in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!