Sep
09
#include<iostream.h>
class A{
public:
A(){
cout<<“A() Constructor Called”<<endl;
}
};
class B:public A{
public:
/*B(int n){
cout<<“B(int n) Constructor Called”<<endl;
}*/
B(){
cout<<“B() Constructor Called”<<endl;
}
};
class C:public B{
public:
C(int num){
cout<<“C(int num) Constructor Called”<<endl;
}
};
void main(){
C c1(90);
}
Leave a Reply
No Comments