-
Exe4_3
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, )
- 2015-06-14 18:22:51下载
- 积分:1
-
jishenghua-JSH_ERP-master
说明: 华夏ERP基于SpringBoot框架,立志为中小企业提供开源好用的ERP软件,目前专注进销存+财务功能。主要模块有零售管理、采购管理、销售管理、仓库管理、财务管理、报表查询、基础数据、系统管理等。支持预付款、收入支出、仓库调拨、组装拆卸、礼品卡等特色功能。拥有库存状况、出入库统计等报表。同时对角色和权限进行了细致全面控制,精确到每个按钮和菜单。(Based on SpringBook framework, Huaxia ERP aims to provide open source and easy-to-use ERP software for SMEs. At present, it focuses on purchase, sale, storage and financial functions. The main modules are retail management, purchasing management, sales management, warehouse management, financial management, report query, basic data, system management, etc. Support advance payment, revenue and expenditure, warehouse allocation, assembly and disassembly, gift cards and other features. Have inventory status, entry and Exit Statistics and other reports. At the same time, roles and privileges are carefully and comprehensively controlled, precisely to each button and menu.)
- 2019-01-14 17:33:56下载
- 积分:1
-
Java_object_relational_mapping_Xiangjie
Java对象关系映射详解:Java object relational mapping Xiangjie(Java object-relational mapping Xiangjie: Java object relational mapping Xiangjie)
- 2010-07-04 17:11:24下载
- 积分:1
-
stiint
《人事管理系统》这是一次课程设计,有点初级,不过可以作为初学者参考之用,希望对初学者有所帮助,()
- 2018-01-26 19:38:22下载
- 积分:1
-
Win-in-the-clouds
赢在云端,一本描述云计算的书籍,希望对云计算入门的同学有所帮助。(Win in the clouds, a description of cloud computing books, we hope the cloud started to help students.)
- 2013-08-06 17:12:56下载
- 积分:1
-
Hangman_-in-Java
用java写的一个猜单词小游戏,Hangman。适合初学者学习java使用。可以用命令行运行,内有user manual。(A game whose name is hangman. A good java code for people who begins to study JAVA. Can be run in command line.)
- 2020-12-03 13:59:24下载
- 积分:1
-
Java-generates
java生成的一一维码图片,该程序可以在eclipse直接运行(Java generated one one dimensional picture code, the program can be run in eclipse directly)
- 2013-10-09 11:57:47下载
- 积分:1
-
SwordForOfferJava-master
说明: 剑指offer电子版,用例使用java语言编写,供java学习者参考(Sword refers to the electronic version of the offer, the use case is written in java language, for the reference of java learners)
- 2019-11-13 09:57:52下载
- 积分:1
-
LineIterator
Line Iterator implements Iterator Source Code for Andriod.
- 2014-01-23 11:05:51下载
- 积分:1
-
lab4Plus
1、Struts2框架下ActionSupport的使用(附加)
在Myeclipse中新建web项目lab4plus;
在实验四的基础上修改LoginAction,使之继承ActionSupport,并重写Validate方法,在其中增加FieldError、ActionError和ActionMessage;
修改login.jsp、loginSuccess.jsp和loginFail.jsp页面,用<s:actionmessage>和<s:actionerror>标签输出信息;
将lab4plus布署在Tomcat服务器上;
运行login.jsp页面,并记录运行结果、主要处理流程与关键代码。(, Struts2 framework ActionSupport use (additional)
Create a new web project in Myeclipse lab4plus
In the experiment on the basis of four modified LoginAction, so inheritance ActionSupport, and override the Validate method, in which the increase FieldError, ActionError and ActionMessage
Modify login.jsp, loginSuccess.jsp and loginFail.jsp page with <s:actionmessage> and <s:actionerror> tag output information
The lab4plus deployed on Tomcat server
Run login.jsp page and record the results, the main processes and key code.
)
- 2013-11-14 15:11:53下载
- 积分:1