A Java method without body statement means the only declaration and does not have an implementation called a Java abstract method. The abstract method must start to be used as an Abstract keyword. An Abstract method can use only in Abstract class. Syntax A simple syntax (signature) of Abstract method.
1 |
abstract void methodName(); |
Java abstract method example Read More…