📖 Samacheer Kalvi · 11th TN - English Medium · Computer Science · Page 266poem

Inheritance

Chapter 3: 4 · Computer Science

Inheritance inherits the other class is called derived class or child class. The derived class is a power packed class, as it can add additional attributes and methods and thus enhance its functionality. Notes The main advantage of inheritance is • It represents real world relationships well • It provides reusability of code • It supports transitivity . Types of Inheritance There are different types of inheritance viz., Single Inheritance, Multiple inheritance, Multilevel inheritance, hybrid inheritance and hierarchical inheritance. . Single Inheritance When a derived class inherits only from one base class, it is known as single inheritance . Multiple Inheritance When a derived class inherits from multiple base classes it is known as multiple inheritance . Hierarchical inheritance When more than one derived classes are created from a single base class , it is known as Hierarchical inheritance.

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →