为了账号安全,请及时绑定邮箱和手机立即绑定

请帮忙找错啊啊啊啊啊啊

请帮忙找错啊啊啊啊啊啊

java2016817 2016-08-20 22:12:11
写了个最后的输出类,找不到错误在那,求各位帮忙找找。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 + "吨"); } }
查看完整描述

2 回答

?
JustWannaHugU

TA贡献452条经验 获得超796个赞

明天帮你找。好困~

查看完整回答
反对 回复 2016-08-20
  • 2 回答
  • 0 关注
  • 1444 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信