1 Answers
- Reusability is an important feature of object-oriented programming.
- Reusability saves time, money and increases reliability.
- The reuse of a class that has already been tested debugged and used many times can preserve the effort of developing and testing the same again.
- C++ supports reusability through the concept of inheritance.
- Inheritance is done by creating new classes by reusing the properties of the existing ones.
- The mechanism of deriving a new class from an old one is called inheritance.
- The parent class is called the base class or superclass.
- The new class derived from the old class is called the derived class or the subclass.