Java Abstract class

Any class that contains one or more abstract method must also be declared abstract.

We can declare an abstract class by using the abstract keyword in front of class keyword at the beginning of the class declaration.

An abstract method is a method which declares in super class and defines by the associate subclass.

To declare abstract method we a place abstract method keyword before method declaration.


      abstract type name(parameter list);

  • Abstract class contains associate is a class in which we can declare an abstract method but can’t define.
  • An abstract class must have at least one method of the abstract type.
  • An abstract class can’t have any object.
  • Abstract class can’t be directly instantiated with the new operator.
  • We can’t declare abstract constructor or abstract static method.