Week 10: Hierarchical Inheritance, Multilevel Inheritance, Multiple Inheritance, Diamond problem

Week 10: Hierarchical Inheritance , Multilevel Inheritance and Multiple Inheritance

During this week, concept of different types of inheritance was given in which hierarchical inheritance,Multilevel inheritance and Multiple Inheritance. Moreover, multiple inheritance encounters the most common diamond problem which has been excluded in other programming languages like java. The member functions in different classes along with their multiple constructos and destructors have been discussed. Also in case of inheritance, the execution of constructors and destructors and their order of execution is of great importance. The constructors of derived classes implicitly invoke constructorsof base classes. However parametrized constructors need to be called explicitly.