Saturday, January 27, 2007

Can you make an instance of an abstract class?

No! You cannot make an instance of an abstract class. An abstract class has to be sub-classed. If you have an abstract class and you want to use a method which has been implemented, you may need to subclass that abstract class, instantiate your subclass and then call that method.

SOURCE : www.referjava.com

No comments: