Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Selected Reading
What is a method in Java that ends in a semicolon and has no method body?
An abstract method is the one which has no definition and declared abstract.
In short, an abstract method contains only method signature without body. To use this method, you need to inherit this method by extending the class and provide the method definition.
Example
public abstract class Employee{
private String name;
private String address;
private int number;
public abstract double computePay();
}
Advertisements
