<P> 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 . </P> <P> Inheritance was invented in 1969 for Simula . </P> <P> There are various types of inheritance, based on paradigm and specific language . </P> <Dl> <Dt> Single inheritance </Dt> <Dd> where subclasses inherit the features of one superclass . A class acquires the properties of another class . </Dd> <Dt> Multiple inheritance </Dt> <Dd> where one class can have more than one superclass and inherit features from all parent classes . </Dd> </Dl>

What are the different form of inheritance in c++