登录
首页 » Java » Exe4_3

Exe4_3

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

  • tshu
    使用Java编写的图书管理系统,能够进行借还书,图书、读者、借阅历史等的查询(a manage system about library written in Java )
    2012-04-13 16:38:29下载
    积分:1
  • bookManager
    1. 实现图书馆对外借书,还书的简易操作,提高图书馆对最平凡工作的效率。 2. 实现图书馆对所藏图书的按类别,书名等多方面的查询,最大的方便读者和图书馆工作人员对所需图书的查询。 3. 建立图书馆外借读者数据库,方便工作人员对读者进行有效管理。 4. 建立图书馆工作人员数据库,限定每个工作人员对软件操作的权限,最大限度的保护数据库。 5. 实现图书馆对新书入库,旧书注销的简单处理,并且建立书籍档案,方便进货。 (1. 实现图书馆对外借书,还书的简易操作,提高图书馆对最平凡工作的效率。 2. 实现图书馆对所藏图书的按类别,书名等多方面的查询,最大的方便读者和图书馆工作人员对所需图书的查询。 3. 建立图书馆外借读者数据库,方便工作人员对读者进行有效管理。 4. 建立图书馆工作人员数据库,限定每个工作人员对软件操作的权限,最大限度的保护数据库。 5. 实现图书馆对新书入库,旧书注销的简单处理,并且建立书籍档案,方便进货。)
    2016-02-16 21:37:05下载
    积分:1
  • DRWyuanliyingyong
    DWR 原理英文原版。希望能对学习该技术的人员起到作用。(DWR principle of the English original. The hope is to learn the art will play a role.)
    2013-12-18 16:55:04下载
    积分:1
  • HomeWork_OS
    模拟操作系统的界面程序,磁盘管理模块,文件管理模块,内存置换算法等(Simulation of the operating system interface program, disk management module, document management modules, memory replacement algorithm)
    2021-01-07 04:08:52下载
    积分:1
  • Java_String.format
    Java中String.format的用法(String.format usage in Java)
    2013-11-21 11:27:25下载
    积分:1
  • WidgetClassLoader
    Parser for the text file containing the list of widgets, layouts and layout params.
    2014-01-17 12:01:20下载
    积分:1
  • DVDMrgTest
    一个影碟出租的 控制台小程序 适合初学java的人(A DVD rental java console applet suitable for beginners who)
    2013-07-03 14:22:50下载
    积分:1
  • eayl-iostream
    struts in action, 详细介绍action,form的使用方法,经典(Struts in action, introduces the usage of action,form in detail.)
    2018-09-16 07:16:41下载
    积分:1
  • javaEE健康管理系统
    说明:  关于javaEE健康管理系统的毕业设计源代码资料(The source code of the graduation project of Java EE health management system)
    2019-11-24 09:07:49下载
    积分:1
  • commons-collections4-4.2-bin
    说明:  因为某些国家的进口管制限制,Java发布的运行环境包中的加解密有一定的限制。比如默认不允许256位密钥的AES加解密,解决方法就是修改策略文件。(Because of the restrictions of import control in some countries, there are some restrictions on the encryption and decryption in the operating environment package released by Java. For example, AES encryption and decryption of 256 bit key is not allowed by default. The solution is to modify the policy file.)
    2020-01-02 11:38:40下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载