Abstract classes are essential to providing an abstraction to the code to make it reusable and extendable. For example, a Vehicle parent class with Truck and Motorbike inheriting from it is an abstraction that easily allows more vehicles to be added .
Read moreWhy do we use abstract class in C?
The purpose of an abstract class is to provide a blueprint for derived classes and set some rules what the derived classes must implement when they inherit an abstract class . We can use an abstract class as a base class and all derived classes must implement abstract definitions.24 Şub 2022
Read more