登录
首页 » Java » Exe4_3

Exe4_3

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

  • springmvcDemo11-23
    学生管理系统,简单springmvc框架学习(Student management system)
    2017-11-29 22:59:37下载
    积分:1
  • pdf.js-master
    pdf在线预览,动态查看,以文件流的形式查看(pdf Online preview, dynamic view, view in the form of file stream)
    2017-10-20 15:55:09下载
    积分:1
  • Eclipse_pdf
    说明:  对于初学JAVA语言的人来说,经常对eclipse这个开发工具的使用很不熟悉,这个PDF文件可以帮助你进行很好的了解和掌握(JAVA language for beginner people, often eclipse the use of development tools is very familiar with, this PDF document can help you carry out a very good understanding and knowledge of)
    2008-11-17 09:04:11下载
    积分:1
  • MyJbox2D
    基本JBOX2D做的一个实例,封装圆形,矩形以及多边形,绑定精灵。用愤怒的小鸟图片为例子,大家下载自己修改(JBOX2D do a basic example of package circular, rectangular and polygonal, binding wizard. Photo by angry birds as an example, we download their modified)
    2011-06-15 15:47:48下载
    积分:1
  • MovingBoxes
    这是一个jquery写的移动相框效果,非常精美。(It is written in a jquery mobile frame effects, exceptionally beautiful.)
    2010-03-11 12:04:33下载
    积分:1
  • toBook
    Java编程实现二手书交易平台,给大家做个参考(Java programming used book trading platform, to be a reference)
    2013-12-09 19:07:11下载
    积分:1
  • o2o
    本文件实现了商品的添加删除,以及端口的使用(This document implements the addition and deletion of goods and the use of ports.)
    2018-11-12 13:14:41下载
    积分:1
  • 棋盘覆盖
    说明:  带界面的棋盘覆盖算法,很好的参考价值,有封装,需要解码一下。(ChessBoard Algorithm with JAVA)
    2020-05-28 13:03:54下载
    积分:1
  • FileManager
    网上文件管理系统:myeclipse开发的,可以上传下载文件,struts2框架,附带mysql数据库(Online document management system: myeclipse developed can upload and download files, struts2 framework with mysql database)
    2013-11-29 14:35:26下载
    积分:1
  • admin-templates
    这是网站后台管理模板,是非常实用的,它可以帮助你完成网站后台的实现(This is the Site Admin templates are very useful, it can help you to complete the implementation of site background)
    2011-06-19 12:39:02下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载