Abstract class is inherited by derived class - Polymorphism and Abstract Classes

Q.  If abstract class is inherited by derived class, then_______________ .
- Published on 19 Oct 15

a. Derived class should provide definition for all the pure virtual functions
b. Derived class also become abstract if fails to implement pure virtual functions
c. Objects of derived class can’t be created if it fails to implement pure virtual functions
d. All of these

ANSWER: All of these
 

    Discussion

  • ramesh   -Posted on 06 Oct 15
    If abstract class is inherited by derived class, then Derived class should provide definition for all the pure virtual functions otherwise derived class also become abstract if fails to implement pure virtual functions. If derived class is also become abstract then you cannot create object of derived 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.)