车辆类简介
来源:互联网 发布:mac上的图片浏览 编辑:程序博客网 时间:2024/05/01 02:20
/** 烟台大学计算机学院学生 *All right reserved. *文件名称:java-- 车辆类介绍 *作者:孔云 *完成日期:2014年10月7日 *版本号:v1.0 *对任务及求解方法的描述部分:java-- 车辆类简单介绍 *我的程序:*/public class Vehicle {private String vehId;private String vehUse;private String auther;private String oil;private String color;private double price;public Vehicle(){}public Vehicle(String vehId,String vehUse,String auther,String oil,String color,double price){this.vehId=vehId;this.vehUse=vehUse;this.auther=auther;this.oil=oil;this.color=color;this.price=price;}public String getVehId() {return vehId;}public void setVehId(String vehId) {this.vehId = vehId;}public String getVehUse() {return vehUse;}public void setVehUse(String vehUse) {this.vehUse = vehUse;}public String getAuther() {return auther;}public void setAuther(String auther) {this.auther = auther;}public String getOil() {return oil;}public void setOil(String oil) {this.oil = oil;}public String getColor() {return color;}public void setColor(String color) {this.color = color;}public double getPrice() {return price;}public void setPrice(double price) {this.price = price;}public void show(){System.out.println("车辆型号:"+getVehId());System.out.println("车辆用途:"+getVehUse());System.out.println("车辆性能:"+getAuther());System.out.println("车辆油耗:"+getOil());System.out.println("车辆颜色:"+getColor());System.out.println("车辆价格:"+getPrice());}public static void main(String[] args) {// TODO Auto-generated method stubVehicle ve = new Vehicle("京F", "载货", "非常好", "很少", "白色", 8888888);ve.show();}}
车辆型号:京F
车辆用途:载货
车辆性能:非常好
车辆油耗:很少
车辆颜色:白色
车辆价格:8888888.0
0 0
- 车辆类简介
- 车辆行驶类
- java-- 车辆类介绍
- 车辆类继承式介绍
- 车辆类多重继承中使用虚基类
- 2013第十三周上机任务 项目三 【车辆类】
- 第十三周 项目3车辆类(继承)
- java--继承车辆类并且通过子类进行重新赋值
- 车辆检测器
- 车辆年检
- 车辆基础理论
- java车辆
- 车辆检测
- 车辆定位
- 车辆分类
- 车辆管理软件、车辆费用软件、公司车辆管理软件
- 第13周-任务1-抽象类-用车辆类去体会
- 第十三周项目三——车辆类(运用虚基数实现)
- [翻译]如何解决使用 JMeter 时遇到的问题
- 在Aptana中使用Courier New字体
- winform中出现错误“未将对象引用设置到对象的实例”的原因
- 机器学习手记[3]---朴素贝叶斯识别垃圾邮件的应用
- leetcode gas station
- 车辆类简介
- 大数据中2Bitmap的思想
- 发生锁等待时,常用的解决方案
- QT安装和使用 qscintilla2 控件
- Andrew Stankevich's Contest (4) F - Think Positive 单调队列
- DirectX11 学习笔记6 - 使用D3DXMATH数学库的一个例子
- 毕业这三年(续)
- LeetCode::Wildcard Matching
- 或得不思,度娘垂青收录?