• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inheritance Query

 
Aum Tao
Ranch Hand
Posts: 210
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Now, I would like to know what you think about the above code, and whether which abc() will get called, and how? as I am finding it hard to understand this code if the over ridden method is declared private.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not put some System.out.println() statements in those methods? Or do you prefer the Zen approach?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic