1
import java.util.Scanner;
class Vehicle {
//汽车类
//write your own codes
private int wh;
private float we;
public Vehicle(int a,float b){
this.wh=a;
this.we=b;
}
public int getWh(){
return wh;
}
public float getWe(){
return we;
}
public void show() {
System.out.println("car:");
}
public void print() {
System.out.println("Manned number:" + wh + " Bit");
System.out.println("Capacity:" + we + " Tons");
}
}