登录
首页 » Java » Exe4_3

Exe4_3

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

  • UNICOM
    说明:  中国联通短信业务开发源码 开发接入程序必须有一定的socket编程基础, 且必须熟悉sgip1.2协议才可以,我应一位网友的要求将我开发的短信接入程序源代码发布,希望对开发短信业务的朋友提供一些帮助,代码可自由传播。(sms sound code)
    2010-03-24 13:53:28下载
    积分:1
  • chinafuwen
    手机游戏JAVA源码大富翁中国之旅+最新版,需要的朋友赶紧下载吧(JAVA source Monopoly mobile game trip to China+ the latest version of the need to quickly download your friends)
    2009-05-24 20:39:06下载
    积分:1
  • Java(_)
    java语言程序基本概述全集以及SDK1.6编译器的新规定 (Java language program to complete basic overview and new rules of SDK1.6 compiler )
    2013-09-28 19:51:34下载
    积分:1
  • Instant-messaging-system
    即时通信系统(Java实现源代码),测试可行。(Instant messaging system (Java source code), the test is feasible.)
    2014-02-15 21:30:43下载
    积分:1
  • MyCalendar
    Java万年历系统,带有记事本功能,界面友好,代码注释详细,适合初学者借鉴学习。(The Calendar with NotePad。)
    2012-02-27 16:07:51下载
    积分:1
  • huawei
    说明:  huawei2019年网络技术精英挑战赛复赛java题目(Huawei 2009 Network Technology Elite Challenge Seminar Java Topic)
    2020-06-20 20:20:02下载
    积分:1
  • javaInterance
    java接口方面的,感兴趣的朋友可以下载下来看看(java interface, interested friends can download them to see)
    2012-12-03 15:19:22下载
    积分:1
  • StudentManagement1
    简易的实现了管理员登录,查询,管理的功能(Simple realization of administrator login, query, management functions)
    2020-06-24 09:00:02下载
    积分:1
  • Servlet3.1-standard
    java servlet规范3.1 官方文档解释,仅供参考(java servlet standard,official 3.1 edition)
    2015-09-17 13:29:14下载
    积分:1
  • Mail
    本功能方法是上传短信接口,不仅可以上传给某一个用户,也可以批量发送(for mail)
    2015-08-01 12:08:29下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载