登录
首页 » Java » Exe4_3

Exe4_3

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

  • javagetMAC
    说明:  java简单的获取windows系统网卡mac地址(simple access to the Windows system card mac address)
    2006-04-25 11:24:25下载
    积分:1
  • agent_mirate
    自己写的一个小程序,是关于agent序列化与迁移的,一个agent经序列化后跑到网络另一台host上运行,然后返回(himself wrote a small procedure, the sequence is on the agent and migration, After a sequence of the agent went after another network host running and then return to)
    2007-05-09 10:46:17下载
    积分:1
  • date_picker
    说明:  java 写的日期选择控件.非常实用的哟(java to write the date of selection control. very practical yo)
    2009-08-24 16:56:51下载
    积分:1
  • 会议室管理
    说明:  会议室管理系统源代码为且翁群翁群翁骑我发给电饭锅(Using Ajax to add, delete, modify and query)
    2019-12-23 12:39:43下载
    积分:1
  • LargeIntegerOperation
    数制转换和运算方法。用Java语言编写一个十六进制大数运算程序 (Number system conversion and computing methods. Java language using a hexadecimal calculation procedures of large numbers)
    2009-06-30 13:13:32下载
    积分:1
  • Kqscan
    基于特定erp平台进行条码管理,使用语言未java涉及跨库跨服务器链接以及存储过程的调用等.(Bar code management based on specific ERP platform. The use of language without Java involves cross-library cross-server links and calls of stored procedures.)
    2020-06-19 01:00:02下载
    积分:1
  • JVM_ClassLoader
    本次上传的学习资料为,深入java虚拟机的讲解(Depth java virtual machine)
    2013-11-29 23:41:21下载
    积分:1
  • ASC-DOCUMENTATION
    About Automated Sports Club
    2014-09-30 11:04:41下载
    积分:1
  • CountdownView-master
    计时器,界面设计漂亮,并且支持后台运行,ui更新( U8BA1 u6568 u5668 uFF0C u754C u9762 u8BB u8BA1 u6F02 u4E0Y u5E09 u4E13 u652F u6301 u540E u53F0 u8FD0 u884C uFF0Cui u66F4 u65B0)
    2017-05-13 17:06:52下载
    积分:1
  • calculator
    大三课程设计(java编程小实例):计算器小程序(java programming small example: Calculator applet)
    2013-08-28 20:44:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载