package car;
public class Taxi extends Car {
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company;
}
private String company;
public void start() {
System.out.println("乘客您好" );
System.out.println("我是" + company + "的" + "," + "我的车牌是" +
carId + "," + "您要去哪里?");
}
public void stop() {
System.out.println("目的地已经到了" + "," + "请您付费下车,欢迎再次乘坐");
}
public Taxi(String company,String carId) {
this.company = company;
super.carId=carId;
}
}
我的K8409
- 粉丝: 918
- 资源: 2
最新资源
- 【岗位说明】4S店保险专员岗位职责.docx
- 【岗位说明】出单员岗位职责.docx
- chromedriver-linux64_115.0.5767.0.zip
- chromedriver-linux64_115.0.5765.0.zip
- chromedriver-linux64_115.0.5769.0.zip
- chromedriver-linux64_115.0.5771.0.zip
- chromedriver-linux64_115.0.5770.0.zip
- chromedriver-linux64_115.0.5772.0.zip
- chromedriver-linux64_115.0.5773.4.zip
- chromedriver-linux64_115.0.5773.0.zip
- chromedriver-linux64_115.0.5785.0.zip
- chromedriver-linux64_115.0.5776.0.zip
- chromedriver-linux64_115.0.5777.0.zip
- chromedriver-linux64_115.0.5790.90.zip
- chromedriver-linux64_115.0.5790.56.zip
- chromedriver-linux64_115.0.5790.102.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈