登录
首页 » Java » Exe4_3

Exe4_3

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

  • cdc
    说明:  基于WHO PEN干预的慢性病管理信息系统,普通的增删改查功能(The chronic management information system based on the WHO's intervention, the general increase and delete function)
    2017-11-14 10:38:28下载
    积分:1
  • arrange
    java代码实现的生成排列程序,有界面,组合数学课上作业。(arrangement java code generation procedures, interfaces, operating on a combination of mathematics)
    2011-12-25 20:20:06下载
    积分:1
  • 说明:  horstma
    2004-10-22 22:26:09下载
    积分:1
  • zenme-chengwei-java-gaoshou-
    这篇文章教你如何成为一位java高手,要想成为java高手的请多看看。(This article teaches you how to become a the java master, in order to become the java master of like him look at.)
    2012-10-17 14:40:32下载
    积分:1
  • javadatabase
    此代码是关于java和数据库连接的大作业(This code is a big job on java and database connections)
    2012-11-26 18:55:29下载
    积分:1
  • SharpNeatV2
    java file for tsp problem solution and neural network sample mode .diffrent techniques in neural network
    2010-10-07 12:57:31下载
    积分:1
  • demo
    说明:  springboot启动文件,初始化项目(springboot start file)
    2020-06-17 11:40:02下载
    积分:1
  • weiqi-415
    说明:  JAVA编写的具有初步走棋功能的围棋程序。(JAVA CODE FOR WEIQI)
    2009-08-26 11:33:13下载
    积分:1
  • javaPmysql-
       采用JAVA作为开发工具,mysql作为后台数据库。本系统具有学生基本信息管理、学生成绩信息管理、教师基本信息管理等功能。分成三大模块,每个模块都相互联系,但不相互干扰,这符合了软件模块开发的思想。 本系统完成了学生信息的查询、修改、增加、删除;教师信息的查询、修改、增加、删除以及学生成绩信息的查询、修改、增加、删除等功能。(Using JAVA as a development tool, mysql database as a background. This system has the students basic information management, information management student achievement, teachers basic information management and other functions. Divided into three modules, each linked to every other, but do not interfere with each other, in line with the idea of ​ ​ a software module development. The system completed the student information query, modify, add, delete teacher information query, modify, add, delete, and student achievement information, query, modify, add, delete functions.)
    2013-10-03 22:57:49下载
    积分:1
  • Java_snake
    Java版贪吃蛇。参照某人的博客做的。很有价值。(Java version of Snake. Reference to someone' s blog. Valuable.)
    2013-04-06 16:43:44下载
    积分:1
  • 696518资源总数
  • 104349会员总数
  • 32今日下载