In this article,Abstract Classes and Abstract Methods is explained in detail with examples.
An abstract is a keyword,use as a modifier in java programming in two situations.
An abstract is a keyword,use as a modifier in java programming in two situations.
- Abstract methods.
- Abstract classes.
Abstract Methods
A method in a class which is incomplete without a body is known as an abstract method or incomplete method or non-concrete method.
Ex
public void method1();
public void display();
such methods are designated with the keyword "Abstract".