• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I create the object of an protected inner class of a Base class in the subclass ?  RSS feed

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Can I create the object of an protected inner class of a Base class in the subclass ?


Regards,
Ishan
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if it's protected, then I can't see why a sub class could not access it.
You could also try "javac Sub.java"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!