Reusability of the code can be achieved in CPP through Inheritance - Inheritance

Q.  Reusability of the code can be achieved in CPP through ______ .
- Published on 17 Jul 15

a. Polymorphism
b. Encapsulation
c. Inheritance
d. Both a and c

ANSWER: Inheritance
 

    Discussion

  • Nihal   -Posted on 08 Oct 15
    Reusability is the main feature of CPP. Reusability of the code can be achieved in CPP through inheritance. Reusability is the use of existing code the development of software. By the use of inheritance you can use base class data into 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.)