What will be the out of the following program?
#include<iostream.h>
class BixBase
{
protected:
int x, y;
public:
BixBase(int xx =int yy = {
x = xx;
y = yy;
}
void Show()
{
cout<< x * this->y << endl;
}
};
class BixDerived
{
private:
BixBase objBase;
public:
BixDerived(int xx, int yy) : objBase(xx, yy)
{
objBase.Show();
}
~BixDerived()
{ }
};
int main()
{
BixDerived objDev(20);
return}
|