Virtual base class The duplication of inherited members due to these multiple paths can be avoided by making the common base class as virtual base class while declaring the intermediate base class When a class is made virtual base class, C++ takes necessary care to see that only one copy of that class is inherited, regardless of how many inherited paths exist between the virtual base class and a derived class.
{}