aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Invoking a Superclass Version of an Overridden Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Invoking a Superclass Version of an Overridden Method" Watch "Invoking a Superclass Version of an Overridden Method" New topic
Author

Invoking a Superclass Version of an Overridden Method

Yuan Du
Ranch Hand

Joined: Nov 20, 2008
Posts: 34
Hi everyone,

I'm not really clear about Invoking a Superclass Version of an Overridden Method in combination with modifying/invoking of instance variables( from Super or Sub).

Could you please make some examples to make it clear? Thank you!

Yuan
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9313
    
  17

well if you call a super class method, then it doesn't matter if the method is overridden or not. The method will use the super class fields.



SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
 
subject: Invoking a Superclass Version of an Overridden Method