#include"iostream.h"
class typebase
{
public:
int a;
int b;
public:
typebase(int a,int b)
{
this->a=a;
this->b=b;
};
virtual int v(int i,int j)
{
return i-j;
};
};
class type:public typebase
{
public:
int a;
int b;
type(int a,int b):typebase(a-50,b-50)
{
this->a=a;
this->b=b;
}
int
v(int i,int j)
{
return i+j;
}
};
void main()
{
type a(100,100);
typebase &b=a;
typebase b1=a;
cout<<b.a<<endl;
cout<<b.v(68,69)<<endl;
cout<<b1.v(68,69)<<endl;
}