package hosework;class Transport
{
int speed=120;
float load=50000;

Transport(int sp,float lo)
{
sp=speed;
lo=load;

}
 public int getsp()
{
return speed;
}
 public float getloa()
{
return load;
}

 public void show()
 {
 System.out.println("速度"+speed+"Km/h");
 System.out.println("载重"+load+"Kg");
 }
}
class Vehicle extends Transport
{
int wheels=8;
float weight=70000;
 Vehicle(int sp,float lo,int wh,float we)
{
wh=wheels;
we=weight;

}
public int getwh()
{
return wheels;
}
public float getwe()
{
return weight;
}
 public void show()
 {
 System.out.println("车轮"+wheels+"Km/h");
 System.out.println("载重"+load+"Kg");
super.show();
 }
}
class Airport extends Transport
{
String enginertype="Apache";
int enginers=5;
Airport(String entype,int ens,int sp,float lo)
{
entype=enginertype;
ens=enginers;
}
 public void show()
 {
 System.out.println("发动机型号:"+enginertype);
 System.out.println("发动机个数"+enginers+"个");
 super.show();

}public class Q3 {
public static void main(String args[]){
Vehicle bmw=new Vehicle(120,50000,4,3000);
Airport boyin747=new Airport("apache",5252,555,222);
bmw.show();
{
System.out.println(bmw+"hava"+wh+"wheels");


}

}
}