| Author |
How to use Abstract inner classes ?
|
munna next
Ranch Hand
Joined: Sep 28, 2004
Posts: 46
|
|
In the belwo code I know I can not use new Inner() becuase it's an abstract inner class. But I am not able to visualize where and how I can use abstract inner class ? ( tags added) [ July 11, 2006: Message edited by: Barry Gaunt ]
|
 |
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
|
|
|
Since the inner class is protected, you can create other inner classes in this class definition or in any subclass of this class definition that extend the abstract inner class and give concrete implementations to its abstract methods.
|
 |
munna next
Ranch Hand
Joined: Sep 28, 2004
Posts: 46
|
|
|
Thaks Keith for reply. What happens if inner class is public ? I can use only thru sub class of the inner class ? I can not use this abstract inner class in enclosing class (Upper) ? tahnks for reply.
|
 |
 |
|
|
subject: How to use Abstract inner classes ?
|
|
|