0

In C++, why we can not create object of abstract class and we can just create only pointer/referance of abstract class?

What is the main reason of not allowing to create object ?

11th Jul 2019, 12:44 AM
Amit chavare
Amit chavare - avatar
1 Answer
+ 2
I am pretty sure it is because an abstract class only has a pure virtual function, which is nothing, but you can create a pointer/reference because it is the mother class of different classes??? This is just my guess.
11th Jul 2019, 2:15 AM
CeePlusPlus
CeePlusPlus - avatar