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
racbrayAsked:
Who is Participating?
 
ksivananthCommented:
you can't create an instance of abstract class!
0
 
ksivananthCommented:
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!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.