#include <iostream.h>
class cl1{
private:
int a;
public:
cl1(){a=10;}
void show1();
};
class cl2:public cl1{
private:
int b;
public:
cl2(){
b=20;}
void show2();
};
void cl1::show1()
{ cout << a << endl;}
void cl2::show2()
{ cout << b << endl;}
main()
{cl1 object1;
cl1 *str;
str = &object1;
str->show1();
str = &object2;
str->show2();
}