寫(xiě)了個(gè)最后的輸出類,找不到錯(cuò)誤在那,求各位幫忙找找。package cn.com.didizuchexitong;
//皮卡車類
public class PickUp extends Vehicle{
protected int carload; //載客量
protected int freight; //載貨量
public int getCarload() {
return carload;
}
public void setCarload(int carload) {
this.carload = carload;
}
public int getFreight() {
return freight;
}
public void setFreight(int freight) {
this.freight = freight;
}
public PickUp(String name , int money , int carload , int freight) {
super();
// TODO Auto-generated constructor stub
this.name = name;
this.money = money;
this.carload = carload;
this.freight = freight;
}
public void dayIn(){
System.out.println("\t" + name +"\t\t" + money + "元/天" + "\t\t" + "載人:" + carload + "人"
+ "載貨:" + freight + "噸");
}
}
請(qǐng)幫忙找錯(cuò)啊啊啊啊啊啊
java2016817
2016-08-20 22:12:11