登录
首页 » Java » Exe4_3

Exe4_3

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

  • MathContext
    Immutable objects describing settings such as rounding mode and digit.
    2014-01-22 14:19:05下载
    积分:1
  • teshuqipanfugai
    特殊棋盘覆盖问题的Java脚本文档,采用递归的思想解决(Special chessboard coverage of Java script files, using recursive thinking to solve)
    2014-04-26 17:50:24下载
    积分:1
  • CompletionInfo
    Information about a single text completion that an editor has reported to an input method.
    2014-01-03 19:35:20下载
    积分:1
  • 头像图片剪裁上传swf组件的java版
    头像图片剪裁上传swf组件的java版,上传图片是实现可裁剪图片大小后上传(Head image clipping and uploading the Java version of SWF component)
    2020-06-16 09:40:02下载
    积分:1
  • dtdparser-1.21
    XML的DTD的解析、对XML文件作用的JAVA源代码。(XML DTD parsing XML documents role of the Java source code.)
    2007-06-01 10:08:26下载
    积分:1
  • A126560-WUXUNBO
    实现一个10乘10的表格 内部随即获得两个弧度 JAVA2D 图形绘制(Achieve a 10 by 10 inside the table then get two arc JAVA2D Rendering)
    2011-11-25 16:40:19下载
    积分:1
  • [www.java1234.com]JspaServlet
    java的学生管理系统,其中包括数据库编程,js界面编程(java student management system, including programming, java programming interface)
    2015-11-26 11:36:10下载
    积分:1
  • com
    银行的一个管理系统,在ATM端服务,并有异常处理(A bank management system, client services in the ATM)
    2009-05-19 21:17:33下载
    积分:1
  • LocationSimulatorLeLs
    LocationSimulator中国移动LeLs接口模拟器(LocationSimulator China Mobile LeLs Interface Simulator)
    2009-09-29 12:39:58下载
    积分:1
  • SerachEngine
    利用Lucence,搜索引擎的基本实现,刚学习搜索引擎的鞋童可以参考,我自己的作业。(Use Lucence, search engine basically, just to learn search engine shoes children can refer to my own work.)
    2011-11-20 20:38:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载