What is an abstract class in OOP?

Object Oriented Programming Questions



47 Short 36 Medium 25 Long Answer Questions Question Index

What is an abstract class in OOP?

An abstract class in Object Oriented Programming (OOP) is a class that cannot be instantiated and is meant to serve as a blueprint for other classes. It contains one or more abstract methods, which are methods without any implementation. These abstract methods must be implemented by any concrete subclass that extends the abstract class. Abstract classes can also have non-abstract methods with implementation, which can be inherited by the subclasses. The main purpose of an abstract class is to provide a common interface and define common behavior for its subclasses.