登录
首页 » Java » Exe4_3

Exe4_3

于 2015-06-14 发布 文件大小:1KB
0 243
下载积分: 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+TCP/IP+Socket编程++原书第2版
    socekt编程。便于了解常用的tcp,udp编码与服务器编码方式(Socekt programming. Easy to understand the common tcp, UDP coding and server coding methods)
    2019-04-22 11:17:34下载
    积分:1
  • Swing
    一个简单的java swing特效,有兴趣的可以参考下,适合初学者。(A simple java swing effects, are interested can refer to, for beginners.)
    2013-08-05 12:55:54下载
    积分:1
  • 五子棋java
    基本算法: 采用博弈比较常用的策略。 计算机下子前,分别对玩家和电脑棋型进行评估,然后根据棋型对每一位置打分(玩家和电脑在同一点的分数不同),比如活三100分,冲四1000分等,然后根据每个落子点分数进行选择。采用极大极小值策略,进行多步计算。(Basic algorithm: The game strategy is commonly used. Before computer playing, players and computer chess models are evaluated separately, and then each position is scored according to the chess pattern (players and computers have different scores at the same point), such as live three hundred points, go four thousand points, and then choose according to the score of each falling point. Multi-step calculation is carried out by using the minimax strategy.)
    2020-06-17 17:00:02下载
    积分:1
  • TextSwitcherTest
    Text Switcher Test Source Code for Andriod.
    2013-11-21 22:16:22下载
    积分:1
  • PPTPcode
    从零开始学java光盘资料之 【PPT+示例源码】 本书包含:1.java基础 2.java面向对象 3.Swing 4.java编程技术 5.java web基础 6.java实战(教务管理系统)([PPT+ sample source code from scratch to learn java] CD-ROM of the book contains: 1.java 2.java underlying object-oriented programming techniques 3.Swing 4.java 6.java 5.java web-based combat (Academic Management System))
    2014-06-18 17:25:49下载
    积分:1
  • jiatinglicaigongju
    用Java 编写的家庭理财工具 十分完整 十分强大(Written using Java is a complete family financial management tool for very strong)
    2009-12-19 09:39:50下载
    积分:1
  • CloudStack2.2UserInterface
    云计算开源平台cloudstack的相关技术资料和参考文献(Open source cloud computing platform cloudstack the relevant technical information and references)
    2013-08-03 22:07:46下载
    积分:1
  • KeyPairGeneratorTestRSA
    Path Shape constructor Source Code for Andriod.
    2014-02-19 14:08:32下载
    积分:1
  • 8758971589MyEclipse8.5
    这是MyEclipse8.5的学习手册,适合新手学习这个软件。(This is MyEclipse8.5 learning manual for beginners to learn the software.)
    2013-11-28 19:05:47下载
    积分:1
  • DTMException
    This class specifies an exceptional condition that occured in the DTM module.
    2013-11-19 10:06:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载