aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Inner class 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 "Inner class " Watch "Inner class " New topic
Author

Inner class

shri Sonparote
Ranch Hand

Joined: May 07, 2007
Posts: 30
Hi friends I have written two class file
first MyOuter



second main


this two classes are in same package

but //at line 18
I am getting compilation error that
No enclosing instance of type MyOuter is accessible to invoke the super constructor. Must define a
constructor and explicitly qualify its super constructor invocation with an instance of MyOuter (e.g.
x.super() where x is an instance of MyOuter).


Please tell me what i have missed?
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Hi Sri,

Modify your code with:


cmbhatt
shri Sonparote
Ranch Hand

Joined: May 07, 2007
Posts: 30
Thank you

Chandra
shri Sonparote
Ranch Hand

Joined: May 07, 2007
Posts: 30
Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inner class