文件名称:Vehicle
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2014-06-08
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- 薛**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个Java应用程序,该程序有2个类:Vehicle(机动车)和User(主类)。
Vehicle类的成员变量有:speed(速度)、power(功率)。成员方法有:speedUp(int s)—加速,speedDown(int d)—减速,setPower(int p)—设置功率,getPower()—获取功率
-Write a Java application, the program has two categories: Vehicle (vehicle) and the User (master class). Vehicle class member variables are: speed (speed), power (power). Members methods: speedUp (int s)- acceleration, speedDown (int d)- deceleration, setPower (int p)- setting power, getPower ()- Get Power
Vehicle类的成员变量有:speed(速度)、power(功率)。成员方法有:speedUp(int s)—加速,speedDown(int d)—减速,setPower(int p)—设置功率,getPower()—获取功率
-Write a Java application, the program has two categories: Vehicle (vehicle) and the User (master class). Vehicle class member variables are: speed (speed), power (power). Members methods: speedUp (int s)- acceleration, speedDown (int d)- deceleration, setPower (int p)- setting power, getPower ()- Get Power
(系统自动生成,下载前可以参看下载内容)
下载文件列表
.classpath
.project
.settings\org.eclipse.jdt.core.prefs
bin\task_1\User.class
...\......\Vehicle.class
src\task_1\User.java
...\......\Vehicle.java
bin\task_1
src\task_1
.settings
bin
src