This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
My thoughts are, this is interesting. I hadn't thought about this before, but it makes sense to me. An inner class has no independant existance apart from an actual instance of the outer class. That's why you can't declare static members in an inner class. Think about it. If you can't use static members, then for the same reason, you can't extend inner the class outside the outer class.
class Inner2 is not visiable outside of class OuterfromInner1 because of scoping rule, since class Inner2 is not declared static you can only extend this class within class Outer2 [ February 20, 2002: Message edited by: Rajinder Yadav ]
<a href="http://www.rajindery.com" target="_blank" rel="nofollow">Rajinder Yadav</a><p>Each problem that I solved became a rule which served afterwards to solve other problems. --Rene Descartes
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Extending Inner classes outside the enclosing class