SCJP Certification

Sun Certified Java Programmer Certification exam essentials

October 16th, 2009

What is an abstract class?

Java Facts, by Daisy Williams.

An abstract class is a class that is partially implemented. It provides design convenience. An abstract class consists of one or more abstract methods that are declared but left unimplemented. It is the responsibility of subclasses that extend an abstract class to implement the unimplemented part of the abstract class. As the implementation of an abstract class is not complete, it is not possible to directly create objects of an abstract class.

A class containing one or more abstract methods must be declared as abstract. However, a class can also be declared as abstract even if it has no abstract methods. An abstract class may also have non-abstract methods.

Note: The final and abstract class modifiers are not used in combination.

Share

Back Top

Responses to “What is an abstract class?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*