aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
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.
 
 
subject: enclosing class in a construcotr valid or not?