登录
首页 » Java » Exe4_3

Exe4_3

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

  • N
    说明:  字体,可以进行适当的拓展。作为java编程中的类。(Fonts, you can make the appropriate expansion. As a java programming class.)
    2011-06-25 17:29:21下载
    积分:1
  • javadepuzzle
    是一些Java的谜题,很有意思,如果能够好好思考的话,Java水平会有很大的提高(Some of Java puzzles, very interesting, if we can think carefully about it, Java will be greatly improved level of)
    2011-07-10 10:47:58下载
    积分:1
  • hitran
    HITRAN中文分析软件。替换javaHAWKS这个看不懂的软件。(HITRAN Chinese analysis software. Replace javaHAWKS look not to understand the software. )
    2021-03-28 13:59:11下载
    积分:1
  • HiveJDBC
    说明:  java JDBC操作HIVE数据库 可以通过javaapi进行相关操作(Java JDBC operating hive database)
    2019-11-05 16:47:29下载
    积分:1
  • JAVA-professional
    JAVA专业术语集合,包含Java中遇到的大部分英文解释,可以很好的对Java中遇到的问题解决。(JAVA jargon collection)
    2012-02-08 18:59:16下载
    积分:1
  • 关于将jar包转换为exe可执行文件说明书
    关于将jar包转换为exe可执行文件说明书,做了一个jsp程序,如何将它弄成一个可执行的程序(About the jar package converted to exe executable file instructions, made a JSP program, how to make it into an executable program)
    2017-10-22 22:18:03下载
    积分:1
  • SourceMade
    自动做成javaBean的工具,可以按着自己定义的规范和注释生成,对日开发的利器哦,节省了代码review的时间哦(sourceCode create tools)
    2010-12-08 19:42:30下载
    积分:1
  • YiDongJiFei-master
    移动业务的开发,基于spring struts2 hibernate技术进行开发的管理页面系统。(Mobile business development, based on spring struts2 hibernate technology development management page system.)
    2018-05-07 12:32:31下载
    积分:1
  • jdk6.ZH_cn
    JDKTM 6 Documentation
    2012-08-01 11:51:54下载
    积分:1
  • 一个用jsp写的聊天室
    一个用jsp写的聊天室(jsp write with a chat room)
    2004-12-22 22:10:07下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载