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 enclosing class in a construcotr valid or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "enclosing class in a construcotr valid or not?" Watch "enclosing class in a construcotr valid or not?" New topic
Author

enclosing class in a construcotr valid or not?

nagaraj raja
Ranch Hand

Joined: Aug 06, 2005
Posts: 36
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
ctest object may only be created within _test() method because its a local inner class


SCJA, SCJP5.0, SCBCD, SCWCD
vinuharan haran
Ranch Hand

Joined: Feb 26, 2005
Posts: 64
Hi,
Here is a way to call the method declared in the innerclass in the constructor.

It is perfectly legal to create a local inner class in the constructor.
Hope this helps...
thanks,
vinu.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: enclosing class in a construcotr valid or not?
 
Similar Threads
selectManyListbox Issue
i implemented interface in anonymous class then it shows compiler error why
Inner Class Names
JSF selectManyListbox Issue?
Finding a language setting or locale of the keyboard