Sep
09
#include<iostream.h>
class A{
public:
void fun_A(){
cout<<“fun_A() Called”<<endl;
}
};
class B:public A{
public:
void fun_B(){
cout<<“fun_B() Called”<<endl;
}
};
class C:public B{
public:
void fun_C(){
fun_A();
fun_B();
cout<<“fun_C() Called”<<endl;
}
};
void main(){
C c1;
c1.fun_C();
}
Leave a Reply
No Comments