登录
首页 » Java » Exe4_3

Exe4_3

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

  • Abstract
    THIS IS IMP FILE......................................................................
    2013-12-09 16:18:25下载
    积分:1
  • spring-security-master
    一个使用spring-security管理权限控制的具体示例(A concrete example of using spring-security to manage permission control)
    2019-01-23 11:06:18下载
    积分:1
  • design
    运动会管理系统 可以让你快速入门 绝对可以提高技术(Games Management System)
    2014-02-18 20:11:46下载
    积分:1
  • css
    jsp做汽车销售网站,比较全,各种图都包括!希望能给大家带来帮助~(jsp to do car sales website, compare the whole, all kinds of plans are included! I hope everyone can help ~)
    2021-03-07 15:19:29下载
    积分:1
  • mypetstore
    宠物商城 是一个学习的好教材 javascript(Pet store is a good learning materials)
    2014-02-22 16:27:52下载
    积分:1
  • BPR_Original
    用Java语言写的经典推荐算法-BPR,常用做各大推荐算法的baseline.(The classic recommendation algorithm written in Java language - BPR, is commonly used as the baseline for major recommendation algorithms, it may be helpful for your study.)
    2020-09-24 19:07:48下载
    积分:1
  • jdk6.ZH_cn
    JDKTM 6 Documentation
    2012-08-01 11:51:54下载
    积分:1
  • gudingzic
    基于JAVA和SQLServer数据库的一个基本的固定资产管理系统,能实现固定资产基本信息管理,主要功能是增、删、改以及资产到期的提醒(Based on a basic fixed asset management system JAVA and SQL Server , to achieve the basic information management in fixed assets, the main function is to increase to remind delete, change and asset maturity)
    2015-12-14 09:40:04下载
    积分:1
  • JDBC-Connection-database-instance
    JDBC Connection database instance.rar JDBC连接数据库实例,可以运行的MyEclipse项目,适合初学者(JDBC Connection database instance.rar JDBC connect to the database instance, you can run the MyEclipse project)
    2011-05-21 23:55:22下载
    积分:1
  • ActiveXDemo
    C# 开发ActiveX插件,可供其他语言调用,已测试C#,网页,java均可调用(C# Development ActiveX plug-in, calling for other languages, have been tested C#, web, java can call)
    2013-12-20 17:43:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载