File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inner class

 
meena latha
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This program gives compile error stating "enclosing instance that contains Outer.Inner is required.



Can anybody explain what that error means.
Thanks in advance
 
Mike Gershman
Ranch Hand
Posts: 1272
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to call the superclass constructor on an instance of the enclosing class. I would have thought o.new would do it, but this version compiles:


Somehow, I doubt that Kathy would put this one on the SCJP exam.
[ February 28, 2005: Message edited by: Mike Gershman ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic