Skip to main content
Engineering LibreTexts

4.1: The Concept of Inheritance

  • Page ID
    34658
  • Inheritance in C++

     

    The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important feature of Object Oriented Programming.
    Sub Class: The class that inherits properties from another class is called Sub class or Derived Class.
    Super Class:The class whose properties are inherited by sub class is called Base Class or Super class.

    The article is divided into following subtopics:

    1. Why and when to use inheritance?
    2. Modes of Inheritance
    3. Types of Inheritance

     

    Adapted from:
    "Inheritance in C++" by Harsh AgarwalGeeks for Geeks is licensed under CC BY 4.0

    • Was this article helpful?