登录
首页 » Java » Exe4_3

Exe4_3

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

  • java-emul-finish
    this is java emulator example maple
    2013-03-19 23:42:29下载
    积分:1
  • BiTree77
    数据结构 二叉树 前序遍历 中序遍历 后序遍历 结点(Pre-order traversal binary tree data structure in-order traversal post-order traversal node)
    2011-11-22 21:55:21下载
    积分:1
  • PSO
    说明:  粒子群程序代码。包括JAVA和matlab非常使用。适合初学者(Particle Swarm program code. Including the very use of JAVA and matlab. Suitable for beginners)
    2008-11-30 20:17:14下载
    积分:1
  • pager
    分页标签,用于程序中对结果集的多条记录进行分页显示。(page)
    2010-01-16 15:26:40下载
    积分:1
  • java_jiehuo
    对于JAVA初学者提供有益的指导,详细解释了95个谜题.(for Java beginners provide useful guidance to explain in detail the 95 mysteries.)
    2007-01-08 16:44:28下载
    积分:1
  • ListOfInternalSelectionViews
    A list of {@link InternalSelectionView}s paramatarized by the number of items, how many rows in each item, and how tall each item is.
    2013-11-28 11:00:07下载
    积分:1
  • jess-and-java
    java与jess相关资料 学习专家系统的同仁们看 很好学哦(java jess information learning expert system colleagues look good to learn Oh)
    2012-10-17 20:16:05下载
    积分:1
  • struts2.1.8.1-API
    struts api JAVA软件工程师必备(struts api JAVA Software Engineer required)
    2014-01-19 22:50:09下载
    积分:1
  • jpcap-0.6
    jpcap是一个中间件,java语言对网络层以下的功能开发并不好,所以jpcap中间件就开发出来了(jpcap is a middleware, java language on the network layer of the functional development of the following is not good, so jpcap out on the development of middleware)
    2009-04-14 19:13:35下载
    积分:1
  • nps1
    这是一个java web的mvc模式开发的新闻发布系统。非常适用。(this is a java web program.it s very useful.)
    2015-01-02 13:09:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载