登录
首页 » Java » Exe4_3

Exe4_3

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

  • Test-libary-system
    利用JAVA实现试题库系统,可以自动组卷,内含数据库MDF文件以及实验报告(Realization of database system using JAVA, you can auto generating test paper, embedded database MDF files and test reports)
    2013-12-16 19:23:41下载
    积分:1
  • ProfilerProcessor
    @fileoverview Profiler processor is used to process log file produced by V8 and produce an internal profile representation which is used for building profile views in "Profiles" tab.
    2014-01-12 09:26:30下载
    积分:1
  • InfoManage
    采用的Java Web设计,开发平台Java和软件架构C/S 就是简单的MVC设计模式+Jsp+Servlet,使用软件Myeclipse + Tomcat + Mysql + Java 由于花费一天时间写Html和代码实现,就没怎么太高要求,能用下就可以了希望可以通过, 就没实现导入的功能,其余功能完全(Using Java Web design, development platforms Java and software architecture C/S is a simple MVC design pattern+Jsp+Servlet, using software Myeclipse+ Tomcat+ Mysql+ Java Html due to spend a day and write code, there is no how high requirements, can hope you can use the following can be, there is no import function to achieve the remaining fully functional)
    2013-11-22 19:59:40下载
    积分:1
  • SyncResult
    This class is used to communicate the results of a sync operation to the SyncManager. Based on the values here the SyncManager will determine the disposition of the sync and whether or not a new sync operation needs to be scheduled in the future.
    2013-12-11 13:17:28下载
    积分:1
  • 怎么获取登陆的用户名
    怎么获取登陆的用户名
    2013-10-31下载
    积分:1
  • EJB
    EJB3在JBoss7下的使用案例,建立EJB远程服务,通过本地和远程两种方式访问EJB服务(EJB3 in use cases JBoss7 under build EJB remote service, access to local and remote EJB services through two ways)
    2016-06-07 10:52:27下载
    积分:1
  • Java-Web-Development
    本人学习java web开发时的读书笔记,可供初学者参考学习J2EE编程知识,迅速建立相关的知识结构。(I am learning java web development study notes, reference for beginners to learn J2EE programming knowledge to quickly build the knowledge structure.)
    2013-05-18 01:52:42下载
    积分:1
  • severclient
    使用java实现的最简单的客户-服务器程序,实现了两者之间的交互,可以在此基础上完成多种操作。(java use of the most simple client-server procedures, the interaction between the two. This can be completed on the basis of a variety of operation.)
    2007-03-19 17:09:40下载
    积分:1
  • LOD
    java读取obj模型(read obj model)
    2004-11-06 22:01:02下载
    积分:1
  • 17
    说明:  java编写的eclipse下的编写的安卓平台下益智类游戏——《旋转积木》(prepared under the preparation of java eclipse Andrews platform puzzle game- rotating blocks)
    2012-05-27 18:08:12下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载