In C++ an abstract class is a class that is designed to be specifically used as a base class. This class is declared using “abstract” keyword. An abstract class cannot be instantiated, which means you are not allowed to create an object of it.
Purpose of an abstract class:
The purpose of an abstract class is to define some common behaviour that can be inherited by multiple subclasses, without implementing the entire class.
A class is abstract if it has at least one pure virtual function.
To know more in detail about an abstract class in c++.
You can Join TCCI Computer Coaching Institute in Ahmedabad.
Call us @ 9825618292