What is Virtual Base Class in C++?

  Take a situation where all the three types of inheritance, multiple, multilevel and hierarchical inheritance are used together. This situation is illustrated in above 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… Read More »