Objectives :

Step: 1 Create a source file.


Step: 2 Edit and save Source file


Step: 3 Runtime Views: Virtual inheritance works like an abstraction and the objects will have a common reference point. Here the integer data "Sal" was inherited as an virtual object, and any moderation in this variable, reflected among the derived classes.