Javatpoint Logo
Javatpoint Logo

ABSTRACT CLASS

An abstract class is a mix between an interface and a class. It can be define functionality as well as interface.

  • Classes extending an abstract class must implement all of the abstract methods defined in the abstract class.
  • An abstract class is declared the same way as classes with the addition of the 'abstract' keyword.

SYNTAX:

Example 1

Output:

ABSTRACT CLASS

Example 2

Output:

ABSTRACT CLASS





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA