English

Define the following with an example. Inheritance - Computer Applications

Advertisements
Advertisements

Question

Define the following with an example.

Inheritance

Definition

Solution

It is an OOP principle according to which one class acquires the features of another class. With the help of inheritance, the components in the Base class can be reused to perform some other task in the Derived class (reusability).

Example: The Car class (subclass) inherits characteristics and methods from the Vehicle class (superclass).

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.01: Introduction to Object Oriented Programming Concepts - EXERCISES [Page 9]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.01 Introduction to Object Oriented Programming Concepts
EXERCISES | Q III. 7. (a) | Page 9
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×