Multiple choice

Inheritance is a way to

  1. make general classes into more specific classes

  2. pass arguments to objects of classes

  3. add features to existing classes by rewriting them

  4. improves data hiding and encapsulation

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Inheritance allows a new class (derived class) to acquire the properties and behaviors of an existing class (base class), effectively creating more specific versions of general classes.