In the previous two modules, we have seen how different types of inheritance are specified and used. We have also seen how base class members are treated in the derived class. We have seen the cases of three different types of inheritance and also seen how the base class sub-objects are constructed and inserted in the derived class to provide uniform performance for accessing all base and derived class members in the derived object. We have also seen how the embedding the base class sub-object concept can be replaced by more flexible but slower and biased towards derived class member approach. We have also seen the consequences of derived a class further and deriving a class into multiple classes. In this final module on the inheritance process, we will look at two of the most complex features, the multiple-inheritance, a way of inheriting a class from more than one parent and virtual inheritance, a method of inheriting while avoiding a duplicate copy of a typical base class, defined as virtual.
No Reviews found for this course.