登录
首页 » Java » Exe4_3

Exe4_3

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

  • 人脸识别系统源码以及数据库(ArcSoftFaceDemo)
    根据ArcSoft的工具包设计的简单人脸识别DEMO,仅供学习。APPID等需要到ArcSoft注册一个应用获得 开发环境准备:###开发使用到的软件和工具:Jdk8、mysql5.7、libarcsoft_face.dll(so)、libarcsoft_face_engine.dll(so)、libarcsoft_face_engine_jni.dll(so)、idea注:libarcsoft_face.dll(so)、libarcsoft_face_engine.dll(so)、libarcsoft_face_engine_jni.dll(so)、app-id、sdk-key可以到虹软官网 http://ai.arcsoft.com.cn/ 免费申请下载本地配置:配置环境(推荐jdk8,mysql5.7,maven3,idea)引擎库libarcsoft_face、libarcsoft_face_engine、libarcsoft_face_engine_jni。把dll或so文件拷贝到java.library.path所包含的路径下,注意区分X86和X64,和当前jdk版本一致。初始化项目 创建数据库arcsoft_face_demo,执行脚本arcsoft_face_demo.sql使用idea启动项目修改配置文件srcmainesourcesapplication.properties填写数据库地址:spring.datasource.druid.url填写数据库用户名:spring.datasource.druid.username填写数据库密码:spring.datasource.druid.password填写人脸识别id:config.freesdk.app-id填写人脸识别key:config.freesdk.sdk-key启动项目右键Application,选择Run ‘Application’项目访问地址http://127.0.0.1:8080/demo
    2021-05-06下载
    积分:1
  • LocationSimulatorLeLs
    LocationSimulator中国移动LeLs接口模拟器(LocationSimulator China Mobile LeLs Interface Simulator)
    2009-09-29 12:39:58下载
    积分:1
  • RTPpacket
    rtp packet source code
    2012-01-11 16:48:20下载
    积分:1
  • LogWriter
    A wrapper around log4j that is used for logging debug and errors.
    2013-11-04 10:19:44下载
    积分:1
  • TALK
    基于serverSocket 和socket编写的及时聊天系统。有类似于tencent的qq界面,能实时监听用户的上下线。能发离线消息。有用户连接池。以及账号注册,修改等功能(ServerSocket and socket-based chat system written in a timely manner. Tencent similar to those of the qq interface, real-time monitor on the user' s offline. Offline messages can be issued. A user connection pool. As well as account registration, modification and other functions)
    2009-11-12 15:10:04下载
    积分:1
  • 【牛客资料库】2018校招12家企业笔试真题汇总
    说明:  2018年的12家大厂java面试真题收藏,内容十分经典!(Java interview questions of 12 large factories)
    2020-03-08 19:23:27下载
    积分:1
  • QuicSort
    显示一个应用界面,可以对数字进行快速排序,并显示交换次数(Digital display the interface of an application, quick sort, and display the number of exchanges)
    2012-12-30 19:56:57下载
    积分:1
  • Client_Server_Message_Transmission
    This file helps to send the message between client and server
    2014-08-04 00:08:32下载
    积分:1
  • JavaWaveText
    Java波浪文字,一个利用Java处理字符的实例,可以设置运动方向参数,显示文本的字符数组,高速文本颜色,显示字体的 FontMetrics对象,得到Graphics实例,得到Image实例,填充颜色数组数据,初始化颜色数组。(Java wavy text, an instance of the use of Java processing characters, you can set the direction of motion parameters, and displays the text character array, high-speed text color, font FontMetrics object Graphics instance Image instance, fill color array data, initialization an array of colors.)
    2013-04-11 17:54:28下载
    积分:1
  • social-member
    说明:  springcloud基本功能,一些简单的查询操作,删除操作,插入操作,定时任务配置(Spring cloud basic functions, some simple query operations, delete operations, insert operations, timing task configuration)
    2020-06-24 06:00:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载