*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Nested classes and inheritance 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 "Nested classes and inheritance" Watch "Nested classes and inheritance" New topic
Author

Nested classes and inheritance

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

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?


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

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.




My Blog SCJP 5 SCWCD 5
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Aha....

I guess that was why it was in devaka's exam :roll:
Sandeep Bhandari
Ranch Hand

Joined: Apr 16, 2004
Posts: 201
expect 2-3 question on inner classes in exam.


SCJP 96% | SCWCD 90%| SCJP mock exams | My SCJP blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Nested classes and inheritance
 
Similar Threads
Reference static var of static nested from Outer
inner class
Static nested classes
why we cant have static fields in an inner class??
Inner Classes vs Static Nested Classes