Virtual inheritance solves the classic “Diamond Problem”. It ensures that the child class gets only a single instance of the common base class.