class A:
{public:int n;};
class B:public A{};
class C:public A{};
class D:public B,public C{};
void main ()
{D d;
d.B::n=10;
d.C::n=20;
cout<<d.B::n<<'\t'<<d.C::n;
}
class A:
{public:int n;};
class B:public A{};
class C:public A{};
class D:public B,public C{};
void main ()
{D d;
d.B::n=10;
d.C::n=20;
cout<<d.B::n<<'\t'<<d.C::n;
}