登录
首页 » Java » Exe4_3

Exe4_3

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

  • webct40
    java web压力测试工具,java web压力测试工具(java web stress testing tools, java web stress testing tools)
    2007-07-14 11:10:42下载
    积分:1
  • 公司文件管理任务系统
    伴随着信息行业的蓬勃发展和人们办公自动化意识的增强,公司文档管理部门的的工作也越来越繁重,原来的公司文档管理系统已经不能完全满足相关人员使用的需要。为了协助信息行业开展公司文档管理工作,提高工作效率,充分利用信息行业的现有资源,开发更好的公司文档管理系统势在必行。 公司文档管理系统是将IT技术用于公司文档信息的管理, 它能够收集与存储患者信息,提供更新与检索的接口;协助信息行业开展公司文档管理工作提高工作效率。 公司文档管理系统采用B/S结构、结合网络数据库开发技术来设计本系统。开发语言采用JSP,数据库使用Mysql数据库。完成以下基本功能: 本系统是一个独立的系统,用来解决公司文档信息的管理问题。采用JSP技术构建了一个有效而且实用的公司文档信息管理平台,目的是为高效地完成对公司文档信息的管理。 本系统是一个独立的系统,用来解决公司文档信息的管理问题。采用JSP技术构建了一个有效而且实用的公司文档信息管理平台,目的是为高效地完成对公司文档信息的管理。 系统包括:权限管理、用户与部门管理、数据库、文件管理、检索模块。 一级用户:显示最新文档、文档预览、文档打印。 二级用户:包含一级管理员权限,显示所有文档、文档上传、文档下载、文档删除。 三级用户:包含二级管理员权限,查询系统日志,修改管理员权限,用户与部门添加、修改、删除。 公司文档管理系统具有标准公司文档管理系统所具有的现实中完整的公司文档管理步骤,完全的虚拟现实实现。真正实现节约资源、提高效率、业务处理的同时真正实现公司文档管理系统的功能作用。
    2016-03-05下载
    积分:1
  • 2333
    本文将用一系列易懂的语言和例子解释Java的网络Socket支持。(This article will use a series of easy-to-understand language and examples to explain the network Socket support Java.)
    2009-06-19 04:14:15下载
    积分:1
  • Android_Map
    安卓工程源码,自行车导航源码,GpsTracker源码,百度地图API-定位周边搜索POI源码,百度地图API源码,北京公交线路查询(离线),获取Gps信息的程序源码。(Android project source code, bike navigation source, GpsTracker source, Baidu map API- positioned around the search for POI source, Baidu Maps API source, Beijing bus lines query (offline), to obtain information on Open Source Gps)
    2015-03-30 15:34:05下载
    积分:1
  • CalculatorService
    This is calcute the age of the persons.
    2017-10-31 20:11:21下载
    积分:1
  • SsaRenamer
    Complete transformation to SSA form by renaming all registers accessed.<p>.
    2013-11-04 09:33:21下载
    积分:1
  • HTSK
    早期编写的一个网通的网关程序,跟网通CNGP交互,能收发短信,群发等。我以前公司用了2年多,经测试,好用,稳定(Early preparation of a Netcom' s gateway program, with China Netcom CNGP interaction, can send and receive text messages, mass and so on. I had the company spent two years, tested, easy to use, stable and)
    2010-01-12 12:16:46下载
    积分:1
  • Solr文档
    说明:  Solr是一个独立的企业级搜索应用服务器,它对外提供类似于Web-service的API接口。用户可以通过http请求,向搜索引擎服务器提交一定格式的XML文件,生成索引;也可以通过Http Get操作提出查找请求,并得到XML格式的返回结果(Solr is an independent enterprise search application server, which provides API interface similar to Web-service. Users can submit XML files in a certain format to search engine servers through HTTP requests and generate indexes. Users can also submit search requests through Http Get operations and get the returned results in XML format.)
    2020-06-18 12:00:02下载
    积分:1
  • 21
    good codes for JavaWeb study. include JSP JavaScript CSS. the 21.zip is a project about ninegrid web,really beautiful and easy study for beginner.
    2014-02-27 14:25:54下载
    积分:1
  • PinYinHelper
    1 取字符串所有汉字首字母 2 取汉字字符串的首字母(A string of all the characters take the first letter of two characters to take the first letter of a string)
    2013-08-14 08:53:18下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载