Computer Science

What do you mean by Abstract class?

Objects & Classes

5 Likes

Answer

A class declared using the abstract keyword is called an Abstract Class. We cannot instantiate objects of Abstract Class. An Abstract Class can contain abstract methods (methods without body) and concrete methods (normal methods with body). The sub-class inheriting the abstract class needs to provide the definition of abstract methods of the super-class otherwise sub-class also needs to be abstract.

Answered By

2 Likes


Related Questions