Solved

Enclosed instance

Posted on 2007-12-05
3
372 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

730 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