• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hierarch of non-static inner class

 
zaghal mohd
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is there is any way can access the x in number 1 thanks in advance
Best regards
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use super.x for accessing the member x of class B since C is a subclass of B.
 
zaghal mohd
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your help Mr. Valentin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic