aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Static Inner Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Static Inner Class" Watch "Static Inner Class" New topic
Author

Static Inner Class

farrukh mahmud
Ranch Hand

Joined: Feb 13, 2001
Posts: 47
hi
first have a look on the code

the Code Works Fine
now my question is that if we want to access Inner class then it should mandatory that we can use Interface no other way???
Correct me If i am Wrong
Thanks

------------------
Regards
Farrukh Mahmud
[This message has been edited by Marilyn deQueiroz (edited November 23, 2001).]


Regards<BR>Farrukh Mahmud
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Hi
You can access the inner object via its type in the following way:

Now make the declaration of StaticInner private and it's true that the only way to access an instance of StaticInner is via interface.
hope helps


SCJP2. Please Indent your code using UBB Code
 
wood burning stoves
 
subject: Static Inner Class