A

Admin • 833.24K Points
Coach

Q. Code reuse can be achieved in a C++ program using ______.

  • (A) Polymorphisme
  • (B) Encapsulation
  • (C) Inheritance
  • (D) Both A and C are true.
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

Inheritance is a process of defining a new class based on an existing class by inheriting its common members and methods. Inheritance allows us to reuse code, it improves the reusability in your C++ code.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.