ICSE Class 10 Computer Applications Question 13 of 16

Encapsulation and Inheritance — Question 15

Back to all questions
15
Question

Question 15

Why do you need to use inheritance? Give two reasons.

Answer

We need to use inheritance for the following reasons:

  1. Inheritance divides a program into useful and reusable set of classes.
  2. Changes made in the original class are reflected in all the inherited classes.