We can create objects of abstract class - Polymorphism and Abstract Classes

Q.  We can create objects of the abstract class.
- Published on 17 Jul 15

a. True
b. False

ANSWER: False
 

    Discussion

  • Brijesh   -Posted on 06 Oct 15
    In abstract class there should be pure virtual function and a slot is reserved for pure virtual function in VTABLE but doesn't put any address in that slot. Hence the VTABLE will be incomplete. Because VTABLE for Abstract class is incomplete, so we cannot create the object of abstract class.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)