Prev Next

Java / Abstract Class

Can an abstract class be instantiated?

No. new AbstractType() does not compile. You instantiate a concrete subclass, or an anonymous subclass that implements the abstract methods.

No. Abstract classes cannot be instantiated since it is abstract and not concrete.

More Related questions...

Show more question and Answers...


Comments & Discussions