+ 3
What is an abstract class?
An abstract class is a class which contains at least one pure virtual function in it. Abstract class provides an interface to its sub classes and abstract class is designed to act as base class not used to create object..
3 Antworten
+ 3
an abstract class is a special type of class specifically used for data abstraction or data hiding. This is done by creating a pure virtual function and assigning its value to 0. Also, you cannot create an object for an abstract class.
+ 1
A class which contains at least one pure virtual function in it is defined as abstract class.
An abstract class can not have any instance or object.
It is always used as an base class for other classes.
However one can also access abstract class without using derived class but by using pointer towards abstract class.
0
so kind of like a shadow drive right? just trying to learn