登录
首页 » Java » Exe4_3

Exe4_3

于 2015-06-14 发布 文件大小:1KB
0 248
下载积分: 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 个回复

  • counter
    Just a simple counter
    2012-11-30 04:29:55下载
    积分:1
  • SpringCloud微服务实战-源码
    SpringCloud微服务实战-源码,对应书本章节(Spring Cloud Microservice Actual Warfare-Source Code)
    2020-06-19 20:40:01下载
    积分:1
  • software_design_pattern_java_example_of_the_constr
    java软件设计建造模式实例.software design pattern java example of the construction.(software design pattern java example of the construction. software design pattern java example of the construction.)
    2010-07-29 12:58:31下载
    积分:1
  • rqcms
    RQCMS is designed to be a pseudo dynamic, multi site content management system that has the following features: 1. pseudo dynamic Is a pseudo dynamic web application in another way. For example, the display list page is categroy.php, after the set, we take the list.php display the contents of the page in the browser. It can display more than 2. sites in other ways Using a website system allows you to build many stations. Many stations can be processed in batches or individually. Each station has its own set of settings, different templates
    2017-09-08 10:43:40下载
    积分:1
  • 一个网站的博客系统 myblog
    是一个网站的博客系统,实现了博客用户注册登录,日志发布/日志管理以及留言板功能。使用了struts、hibernate、spring、freemarker、css。(The blog is a web site system, the realization of a registered blog users log in, log Publish/log management, and message board features. Using struts, hibernate, spring, freemarker, css.)
    2020-06-28 14:00:02下载
    积分:1
  • shuapiao
    本免费刷票软件界面优美,功能强大,速度快,适用于各种网站的投票评选活动。声明:本软件是免费刷票工具,只供大家研究测试的免费投票作弊器,请勿滥用,否则后果自负。
    2009-12-21 19:32:49下载
    积分:1
  • NotePadForJava
    基于Java编写的一个记事本工具,能够支持简单的文本编辑与保存,同时实现了一个HTTP下载功能,能够支持HTTP文本下载。(Notepad tool written in Java, can support a simple text editor and save at the same time an HTTP download function to support HTTP text download.)
    2013-03-16 21:51:44下载
    积分:1
  • FilePermission
    File Permission extends Permission implements Serializable Source Code for Andriod.
    2014-01-01 21:18:02下载
    积分:1
  • calabarstorm
    storm+kafka+matlb集成测试,由于jar太大,jar没有上传(storm+kafka+matlb integration testing, due to the jar is too big, jar not uploaded)
    2016-01-14 11:28:15下载
    积分:1
  • regress-137
    base is now HeapNumber with valid Smi value.
    2014-02-09 12:23:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载