请帮忙找错啊啊啊啊啊啊

写了个最后的输出类,找不到错误在那,求各位帮忙找找。
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 + "吨"); } }

java2016817
浏览 1445回答 2
2回答

JustWannaHugU

明天帮你找。好困~
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java