ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How to invoke a superclass version of an Overridden method?


To invoke a superclass method that has been overridden in a subclass, you must either call the method directly through a superclass instance, or use the super prefix in the subclass itself. From the point of the view of the subclass, the super prefix provides an explicit reference to the superclass' implementation of the method.
// From subclass
super.overriddenMethod();

Related Posts Plugin for WordPress, Blogger...
Flag Counter