-
traffic
一个简单的交通查询系统,对初学者比较适用(A simple transport query system, more applicable for beginners)
- 2009-12-10 14:32:17下载
- 积分:1
-
FuncStartsWith
Execute the StartsWith() function.
- 2014-03-11 17:48:25下载
- 积分:1
-
ClientSocket
精通Java网络编程中的 sockat 编程源代码(Proficient in Java Network Programming sockat programming source code)
- 2011-05-09 19:31:20下载
- 积分:1
-
audit-2.5.2.tar
一种 权限审计工具,可以很好的处理权限审计问题。(One kind of permissions audit tool, can be a good deal permissions audit issues.)
- 2017-03-27 17:40:49下载
- 积分:1
-
BTClient
安卓上的蓝牙串口助手,包含源代码,可以和单片夹等其他的设备相连。(Bluetooth serial port on Andrews assistant, including source code, and other devices can be connected to single folders.)
- 2020-11-07 20:59:48下载
- 积分:1
-
the-third-experiment
面向对象程序设计-Java第三次实验源代码(The third experiment of java source code)
- 2016-06-14 18:09:37下载
- 积分:1
-
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
-
Employee
建立类的层次结构。
创建如下图所示的类
使用类层次结构中的类
Employee : 姓名,保险号、
SalariedEmployee 周薪
CommissionEmployee 佣金率、销售总额
HourlyEmployee 每小时的工资和工作小时数
BaseplusEmployee 每周的基本工资数
(Create a class hierarchy.
To create a class as shown
Use classes in the class hierarchy
Employee: name, insurance number,
SalariedEmployee weekly earnings
CommissionEmployee commission rates, total sales
HourlyEmployee hourly wages and the number of hours worked
BaseplusEmployee weekly basic wage)
- 2020-11-26 10:19:32下载
- 积分:1
-
生命游戏
说明: 一个小游戏,关于生命算法的,设置初始值然后进行生命周期的迭代(A small game, about life algorithm, set the initial value and then iterate through the life cycle)
- 2020-06-16 10:40:01下载
- 积分:1
-
DuplicateHeapByteBufferTest
ConnPerRouteBean implements ConnPerRoute Source Code for Andriod.
- 2014-01-17 14:23:29下载
- 积分:1