#include < iostream >
using namespace std;
class A
{
private: int X, Y;
public : A ( int myx, int myy) { X = myx; Y = myy ;}
void show ( ) { cout << "X =" << X << " Y = " << Y << endl;}
};
class B : public A
{
private : int H, W;
public: B ( int myx, int myy, int myh, int myw) : A ( myx, myy) [ H = myh ; W = myw;}
void show ( ) { cout << "H = " << H << " ; W = " << W << endl; }
};
void main( )
{
B d(1,2,3,4) ;
d. show ( ) ;
}
H=3;W=4