/*Program of Multilevel Inheritance*/
#include
#include
class A
{
int a,b;
public:
void getdata(int q, int w)
{
a=q;
b=w;
}
void display()
{
cout<<"\na="<OUTPUT :
x=8
y=9
I am a member of class B and derived from Class A
a=5
b=6
I am member of Class A
j=1
k=2
I am a member of Class C derived from Class B