C++ Virtual Base Class

Take a situation where all the three types of inheritance, multiple, multilevel and hierarchical inheritance are used together. This situation is illustrated in the below image. The child has two base classes parent1 and parent2 and these two have a common base class grandparent. All the public and protected members of grandparent are inherited into …

C++ Virtual Base Class Read More »