Why we are not able to create object of abstract class?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at SpaceX, Lives in Hawthorne, CA
If we will create an object of the abstract class and calls the method having no body(as the method is pure virtual) it will give an error. That is why we cant create object of abstract class. ... Because it's abstract and an object is concrete.
2023-06-09 06:34:38
评论(499)
Helpful(122)
Helpful
Helpful(2)

Sophia Lewis
QuesHub.com delivers expert answers and knowledge to you.
If we will create an object of the abstract class and calls the method having no body(as the method is pure virtual) it will give an error. That is why we cant create object of abstract class. ... Because it's abstract and an object is concrete.