q=
inheritence in peramiterize constrcter ?
#include<iostream.h>
#include<conio.h>
class a
{
int a;
public:
a(int x)
{
a=x;
cout<<a;
}
};
class b : public a
{
int b;
public:
b(int x, int y):a(y)
{
b=x;
cout<<b;
}
};
class c
{
int c;
public:
c(int x)
{
c=x;
cout<<c;
}
};
class d: public b,public c
{
public:
d(int x,int y,int z):b(x,y),c(z)
{
}
};
int main()
{
clrscr();
d d1;
getch();
return(0);
}