登录
首页 » Java » Exe4_3

Exe4_3

于 2015-06-14 发布 文件大小:1KB
0 199
下载积分: 1 下载次数: 5

代码说明:

  3.已知车辆(Vehicle)包括机动车(MotoVehicle)和非机动车(NonMotorVehicle)2种。小汽车(Car)、公交车(Bus)等属于机动车,自行车(Bicycle)等属于非机动车。随着能源技术的发展,出现了电动自行车(ElectricBicycle)、电动小汽车(ElectricCar)、天然气公交车(NaturalGasBus)等新型车辆。车辆的共同特征是都能够运行(run),并且有唯一的5位车牌号(LicenseNumber)。机动车的共同特征是采用燃油发动机(FuelEngine),且能够驾驶(drive)。自行车的共同特征是能够骑行(ride)。电动车辆的共同特征是由电池(Battery)驱动。天然气车辆的共同特征是采用天然气(NaturalGas)作为动力。 要求: (1)设计一个类体系描述上述车辆,写出它们的属性和方法。 (2)一家公司(Company)拥有10辆普通小汽车、5辆公交车、2辆电动小汽车和1辆天然气公交车,要求写一个方法listVehicles()显示所有车辆的信息(车牌号以及采用的动力)。 程序文件命名为Exe4_3.java。(3. Known vehicle (Vehicle) including motor vehicle (MotoVehicle) and non-motorized (NonMotorVehicle) 2 species. Cars (Car), bus (Bus), etc. to motor vehicles, bicycles (Bicycle), etc. are non-motor vehicles. With the development of energy technologies, the emergence of electric bicycles (ElectricBicycle), electric cars (ElectricCar), natural gas buses (NaturalGasBus) and other new vehicles. A common feature of the vehicle is able to run (run), and there are only five license plate number (LicenseNumber). Common feature is the use of a motor vehicle fuel engine (FuelEngine), and is capable of driving (drive). Common feature is the ability to ride a bike (ride). Common characteristics of the electric vehicle is driven by a battery (Battery). A common feature is the use of natural gas vehicles (NaturalGas) as the driving force. Claim: (1) describe the design of a class system of the vehicle, write their properties and methods. (2) a company (Company) owns 10 ordinary cars, five buses, )

文件列表:

Exe4_3.java,3496,2014-11-21

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • JSF
    说明:  The C Programming Language若干行代码网络平台输出测试(A "Hello, World!"program generally is a computer program that outputs or displays the message "Hello, World!". Such a program is very simple in most programming languages, and is often used to illustrate the basic syntax of a programming language. It is often the first program written by people learning to code.)
    2020-06-22 14:40:01下载
    积分:1
  • enumeration
    This project is the techniques that represent the ennumeration technique completely based on java technology
    2013-11-20 13:52:11下载
    积分:1
  • CAN2_2
    用英飞凌TC1767芯片开发的PMSM电机FOC运算代码,项目的程序,好使!(The Infineon TC1767 chip development the PMSM motor FOC computing code, the program of the project, so that!)
    2021-04-27 13:38:44下载
    积分:1
  • music
    建议的安卓音乐播放器,很简单的代码,适合新手学习(Andrews recommended music player, a very simple code, suitable for novice learning)
    2013-11-06 16:37:49下载
    积分:1
  • 人力资源管理系统
    com.ssh.action action com.ssh.dao dao com.ssh.domain 实体类 beans.xml 修改数据库和具体配置 struts.xml struts配置 http://127.0.0.1:8080/ssh-1/ 系统管理页面 http://127.0.0.1:8080/ssh-1/Clogin.jsp 签到请假页面 工资分析后才能够查询工资(Wage analysis before you can inquire about wages)
    2020-06-16 08:00:02下载
    积分:1
  • 0610sszzv1.0B
    苏苏与朱朱的文件管理系统(interminably with the document management system)
    2005-01-07 15:43:50下载
    积分:1
  • newsrecommder
    新闻推荐系统,功能类似百度新闻推荐,或者淘宝根据最近浏览行为推荐可能感兴趣的物品(News recommendation system, similar to Baidu news recommendation)
    2020-10-25 16:30:00下载
    积分:1
  • Mouse
    java 打地鼠小游戏 课程设计 经过测定 非常好用(the code for java game)
    2020-06-19 15:40:02下载
    积分:1
  • URLUtil
    获取RCP工程下的路径工具类,包括工程的绝对路径和桌面等路径(Access to the RCP works under the path tools, including the path to the absolute path of the project, and desktop)
    2012-09-19 09:59:41下载
    积分:1
  • java
    java语言写的链接Cplex的7个LP问题示例代码(seven exercise about linear programming problem by JAVA)
    2017-06-13 20:12:07下载
    积分:1
  • 696516资源总数
  • 106618会员总数
  • 4今日下载