Link to home
Start Free TrialLog in
Avatar of racbray
racbray

asked on

Enclosed instance

What is a "enclosed instance"?

Could some one please give me an example of an "enclosed instance"

I want to use  the following :

  AbstractDocument.AbstractElement myElement = new AbstractDocument.AbstractElement(doc, attrs, start, end);

When I compile my program I get the error as indicated in the error message box above

Thanks

Reg Bray
Avatar of ksivananth
ksivananth
Flag of United States of America image

you can't create an instance of abstract class!
also to create an instance of an inner class, you need to have the instance of outer class if the inner class isn't static!
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial