What are abstract classes in Java?
Answers
Answered by
1
Abstract Methods and Classes in Java. Abstract methods, similar to methods within an interface, are declared without any implementation. They are declared with the purpose of having the child class provide implementation. They must be declared within an abstract class.
hope it helps
hope it helps
Answered by
7
An abstract class in JAVA is a class which is defined by using the abstract keyword .
MORE INFO :
↪ We are well aware about one of the concepts of OOP ( Object Oriented Programming ) .
↪ Data abstraction refers to the representation of essential features rather than including background details . It helps in enhancing privacy.
↪ We need to inherit the class in order to use an abstract class.
↪ An abstract method is a method which contains the abstract keyword.
↪ An example of an abstract method is :
abstract void middle
↪ The abstract class can be inherited by using the extends keyword .
sabrinanandini2:
superb
Similar questions
Economy,
6 months ago
English,
6 months ago
Math,
6 months ago
Psychology,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago