Object Oriented Programming: Chapter 3: Inheritance and Compile Time Polymorphism

Basic Concept of Inheritance

C++ Programming | Object Oriented Programming

Question: What is Inheritance? List out the advantages of Inheritance.

Chapter:3

Inheritance and Compile time Polymorphism

 

Basic Concept of Inheritance

Inheritance is a property in which data members and member functions of some class are used by some other class.

• Inheritance allows the reusability of the code in C++.


Advantages of inheritance

1. Reusability: The inheritance allows its developer to reuse the code written in the base class.

2. Extensibility: The base class can be extended to the derived class and the required business logic can be written in the derived class.

3. Data hiding: The information that need to be hidden from the derived class can be made private. Hence inheritance also helps its developer not to get the information altered by any derived class.

 

Review Question

1. What is Inheritance? List out the advantages of Inheritance.


Object Oriented Programming: Chapter 3: Inheritance and Compile Time Polymorphism : Tag: Oops, Computer Programming : C++ Programming | Object Oriented Programming - Basic Concept of Inheritance


Object Oriented Programming: Chapter 3: Inheritance and Compile Time Polymorphism



Under Subject


Object Oriented Programming (OOPs)

CS25C07 2nd Semester CSE, CSE(CY) Depts | 2025 Regulation | 2nd Semester 2025 Regulation



Related Subjects


English Essentials II

EN25C02 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation



Linear Algebra

MA25C02 2nd Semester | 2025 Regulation


Applied Physics (CSIE) II

PH25C03 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Digital Principles and Computer Organization

CS25C06 2nd Semester AIDS, CSE, IT, CSE(CY) Dept | 2025 Regulation | 2nd Semester 2025 Regulation


Basic Electrical and Electronics Engineering

EE25C01 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Object Oriented Programming (OOPs)

CS25C07 2nd Semester CSE, CSE(CY) Depts | 2025 Regulation | 2nd Semester 2025 Regulation


Re-Engineering for Innovation

ME25C05 2nd Semester | 2025 Regulation | 2nd Semester 2025 Regulation


Object Oriented Programming (OOPs) - Laboratory

CS25C07 2nd Semester CSE, CSE(CY) Depts | 2025 Regulation | 2nd Semester 2025 Regulation