#include<iostream>
using namespace std;
class car
{
private:
int power;
int seat;
public:
car(int power,int seat)
{
this->power=power;
this->seat=seat;
}
void show()
{
cout<<"car power:"<<power<<endl;
cout<<"seat:"<<seat<<endl;
}
};
class wagon
{
private:
int power;
int load;
public:
wagon(int power,int load)
{
this->power=power;
this->load=load;
}
void show()
{
cout<<"wagon power"<<endl;
cout<<"laod"<<load<<endl;
}
};
class stationwagon:public car,public wagon
{
public:
stationwagon(int power,int seat,int load):wagon(power,load),car(power,seat){}
void showsw()
{
cout<<"stationwagon:"<<endl;
car::show();
wagon::show();
}
};
void main()
{
stationwagon sw(105,3,8);
sw.car::show();
sw.wagon::show();
sw.showsw();
}