File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How to use Abstract inner classes ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "How to use Abstract inner classes ? " Watch "How to use Abstract inner classes ? " New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use Abstract inner classes ?
 
Similar Threads
abstract inner class??
Accessing Outer Class
Abstract Inner class
Abstract method local inner classes help
Question on inner classes