types of inheritance in c++ pdf