Creating object with virtual class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Creating object with virtual class?

Assume we have a class which has pure virtual function. We cannot create directly object. But when we create a pointer type of this class, we are creating an object, aren't we? https://code.sololearn.com/c7YH922zNFl4

13th Feb 2019, 8:00 PM
okan
okan - avatar
1 Answer
+ 2
..\Playground\:8:32: error: expected ';' at end of member declaration virtual void calcInterest() = 0
13th Feb 2019, 8:08 PM
Ivan