Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Nested classes and inheritance

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a nested class extends the outer class...this makes no difference since the inner class already has access to all of the outer classes
members.Am I right?
 
Himanshu Gupta
Ranch Hand
Posts: 598
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think that what will an Object of inner class have if it extends Outer class ? It makes no sense in real programming world as fas as I know but a very bewildering question can be framed using this concept.



 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aha....

I guess that was why it was in devaka's exam :roll:
 
Sandeep Bhandari
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
expect 2-3 question on inner classes in exam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic