File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Static Inner Class

 
farrukh mahmud
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Jose Botella
Ranch Hand
Posts: 2120
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic