Multiple choice

Inheritance is a way to

  1. organize data.

  2. pass arguments to objects of classes

  3. add features to existing classes without rewriting them

  4. improve data-hiding and encapsulation

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

Inheritance is a fundamental OOP concept used to extend existing classes. It allows developers to create new classes that reuse and build upon the functionality of existing ones without modifying the original source code.