#include<iostream.h>
class vehicle
{
public:
int Maxspeed;
int Weight;
vehicle(int M,int W)
{
Maxspeed=M;
Weight=W;
}
void run(){cout<<"running"<<endl;};
void stop(){cout<<"stopping"<<endl;};
};
class bicycle:virtual public vehicle
{
public:
int Height;
bicycle(int M,int W,int H):vehicle(M,W)
{
Height=H;
}
};
class motorcar:virtual public vehicle
{
public:
int seatnum;
motorcar(int M,int W,int S):vehicle(M,W)
{
seatnum=S;
}
};
class Motorcycle:public bicycle,public motorcar
{
public:
Motorcycle(int M,int W,int H,int S):bicycle(M,W,H),motorcar(M,W,S),vehicle(M,W)
{
}
void show()
{
cout<<Maxspeed<<Weight<<Height<<seatnum;
}
};
void main()
{
}