Hybrid inheritance is a combination of multiple inheritance and multilevel inheritance. A class is derived from two classes as in multiple inheritance. However, one of the parent classes is not a base class. It is a derived class.

In Hybrid inheritance using virtual keyword to solve “Diamond Problem”. It ensures that the child class gets only a single instance of the common base class. In other words, the Snake class will have only one instance of the LivingThing class. The Animal and Reptile classes share this instance.

What is inheritance click this link
https://youtu.be/zDLzfljx7Lo

More video please visit here-#learningcwithprogramming