• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking a Superclass Version of an Overridden Method

 
Yuan Du
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic