⊿ Point. {R} Glossary. ◢ Keyword: E. ▰ Sources. 〓 Books [B] ◥ University. {q} PhD. ⏫ THEMES. ⏫ Big Data. [B] Big Data. ⚫ USA. ↂ EndNote. ☝️ BD Dummies. Early Binding [Inheritance (object-oriented programming)] Inheritance is contrasted with object composition, where one object contains another object (or objects of one class contain objects of another class); see composition over inheritance. Composition implements a has-a relationship, in contrast to the is-a relationship of subtyping. Single inheritance where subclasses inherit the features of one superclass. A class acquires the properties of another class.
Multiple inheritance where one class can have more than one superclass and inherit features from all parent classes. Multilevel inheritance where a subclass is inherited from another subclass. The class A serves as a base class for the derived class B, which in turn serves as a base class for the derived class C. A derived class with multilevel inheritance is declared as follows: Class A(...); // Base classClass B : public A(...); // B derived from AClass C : public B(...); // C derived from B This process can be extended to any number of levels. Hierarchical inheritance Hybrid inheritance Static.