登录
首页 » Java » Exe4_3

Exe4_3

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

  • bluez-5.46.tar
    a cat is red and lne lejr lkejl kjklerj le
    2018-02-08 00:24:16下载
    积分:1
  • dividation
    Didation test. This is a Java program. The program divides the first number by the second number and put the result value out.
    2011-10-02 21:44:48下载
    积分:1
  • OHUHWCR236
    java语言编写的课程设计关于聊天工具的编写,推荐一下(Java language, the compilation of curriculum design about chat, recommend)
    2017-05-01 15:05:10下载
    积分:1
  • spring-boot-activiti
    Spring平台整合activiti工作流引擎实例(Spring Platform Integration Actiti Workflow Engine Example)
    2020-06-19 10:00:02下载
    积分:1
  • a2
    Java简单小程序,album管理系统,JDBC的应用(Simple Java applet, album management system, JDBC applications)
    2013-08-04 18:33:48下载
    积分:1
  • filtering
    用JAVA写的带通滤波代码,实现思路很简单,没有采用各种数字滤波的方法。而是通过傅里叶变换到频域,将要求外的频率均置0,再逆傅里叶变换得到的。效果还不错。(Written using JAVA bandpass filtering code to achieve the idea is very simple, without using a variety of digital filtering approach. But through the Fourier transform to the frequency domain, the frequency requirements are set to 0, then the inverse Fourier transform. Results were pretty good.)
    2021-01-15 00:08:46下载
    积分:1
  • eshop
    java_web电子商城项目 ,商城项目功能模块源代码, 功能: 1、用户注册 2、用户登录 3、添加商品(上传) 4、商品查看-- 列表查询 5、商品详情页面 6、将商品添加购物车 7、查看购物车 8、修改购物车 9、生成订单 10、留言板 11、新闻管理(java web sql)
    2018-06-13 12:57:53下载
    积分:1
  • 循环
    说明:  控制条件语句的变量,在for循环结束后,就不可以被访问了,而while循环还可以访问,如果你继续想使用该变量,则可以使用while循环,否则推荐使用for循环,原因是for循环结束,该变量就从内存中消失,能够提高内存的使用效率。(The variable that controls the conditional statement is not accessible after the for loop has finished, and the while loop is accessible if you continue to use the variable, you can use the while loop. Otherwise, it is recommended to use the for loop, because the variable disappears from memory after the for loop, which can improve memory efficiency.)
    2019-10-12 14:00:38下载
    积分:1
  • hivetomysql
    JAVA实现HIve的UDAF,完成多条数据插入MYSQL的结果。输入参数与标准Hive插入msyql的jar一致。(翻译 JAVA实现HIve的UDAF,完成多条数据插入MYSQL的结果。输入参数与标准Hive插入msyql的jar一致。 JAVA achieve HIve the UDAF, the completion of multiple data into MYSQL results. The input parameters are the same as the standard Hive jars inserted into msyql.)
    2016-11-15 11:34:11下载
    积分:1
  • java
    java从入门到精通视频笔记,详细讲解java的相关知识(java entry to the master video notes, explain in detail the relevant knowledge of java)
    2014-12-12 16:23:22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载