Solved

Enclosed instance

Posted on 2007-12-05
3
374 Views
Last Modified: 2008-02-01
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
0
Comment
Question by:racbray
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 26

Expert Comment

by:ksivananth
ID: 20410270
you can't create an instance of abstract class!
0
 
LVL 26

Expert Comment

by:ksivananth
ID: 20410280
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
 
LVL 26

Accepted Solution

by:
ksivananth earned 250 total points
ID: 20410283
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question