登录
首页 » Java » Exe4_3

Exe4_3

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

  • 机器调度问题
    说明:  通过算法智能分配任务,达到最快完成所有任务的目的。(Through the algorithm intelligent assignment task, achieve the fastest completion of all tasks.)
    2019-11-19 00:07:50下载
    积分:1
  • Project1
    Java工程项目实例,基于NetBeans环境。适合Java学习(Java project examples, based on the NetBeans environment. Learning for Java)
    2016-12-20 21:05:41下载
    积分:1
  • Mailbox
    在Windows环境下用java工具开发的具有发送邮件功能的邮箱,希望能给贵站帮助(Using java to send mail function with the development of e-mail)
    2010-12-15 20:59:30下载
    积分:1
  • java
    这是一个我自己做的小段代码 希望 就是想开会员 下点东西(This is a very small program.may other don`t laught at me.)
    2010-08-01 21:22:37下载
    积分:1
  • javamagick.src.tar
    ImageMagick-6.4.0-0.tar.gz java api
    2012-11-29 16:05:02下载
    积分:1
  • En_Decoder
    java自带类3des加解密 java自带类3des加解密 java自带类3des加解密(java class comes 3des encryption 3des decryption java java class comes with its own class 3des encryption and decryption)
    2013-08-27 15:11:13下载
    积分:1
  • JAVA-CTPAPI-master
    源码和依赖的jar包都在压缩文件里 test目录下有行情的demo,交易部分的API还没完全做好,可以连上前置和登录 这个java接口算是预览版吧(Source code and dependent jar packages are all demo in the test directory of the compressed file. The API of the transaction part is not yet complete. You can connect the pre-and login java interface as a preview version.)
    2019-03-19 17:51:12下载
    积分:1
  • OwnFont
    自己写的带有字体的java带界面的代码,导入可以直接使用。可以显示你的电脑上安装的大部分字体。(Write your own fonts with java code to interface with the import can be used directly. Most can display fonts installed on your computer.)
    2014-01-18 19:14:32下载
    积分:1
  • PartUpload
    上传POST模拟,支持断点,思想实现。已测试可用。为通过验证,上传部分!(upload post breakpoint)
    2012-01-29 13:30:17下载
    积分:1
  • man
    编写一个接口ICaculatable 接口中有一个doCaculte()方法 要求三个类BlackMan WhiteMan YellowMan实现这个方法 BlackMan 实现从控制台输入5个数 排序(正排)输出 WhiteMan 实现从控制台输入5个数 排序(倒排) YellowMan 实现从控制台输入5个数 计算总和 输出 写出一个测试类来测试以上类的功能。 测试类中要有void solveProblem(ICaculatable obj)方法进行测试 要求以上类在不同的包当中。(The preparation of an interface, there is a ICaculatable interface doCaculte () method requires three types of BlackMan WhiteMan YellowMan method to achieve this BlackMan input from the console 5, the number of sort (being ranked) output from the console WhiteMan enter the number 5 ranking (inverted ) YellowMan input from the console 5, the number of calculation of the sum of the output type to write a test to test the functions of the above categories. Test category must be void solveProblem (ICaculatable obj) method of the above testing requirements in different types of packages were.)
    2009-05-16 22:17:27下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载