登录
首页 » Java » Exe4_3

Exe4_3

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

  • JavaApplicationPOP
    Email protocols on the internet Post Office Protocol version 3 (POP3) is a standard mail protocol used to receive emails a remote server to a local email client.- POP3
    2015-03-31 20:45:31下载
    积分:1
  • bvhplay-1.00-sourcecode.tar
    sourcecode.tar. that is a player for bvh mocap by bvhplay.the file is bvhplay-1.00-sourcecode.tar. that is a player for bvh mocap by bvhplay.(the file is bvhplay-1.00-sourcecode.tar. that is a player for bvh mocap by bvhplay.the file is bvhplay-1.00-sourcecode.tar. that is a player for bvh mocap by bvhplay.)
    2014-01-06 23:13:08下载
    积分: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
  • cv
    说明:  this is a file which permit to understand the informatio system very well
    2014-01-10 23:15:50下载
    积分:1
  • MyCxfServer
    基于cxf实现的java服务器端webservice,包含一个sayHello方法,供入门者参考(Java server-side Web service based on CXF includes a sayHello method for beginners to refer to)
    2019-05-19 15:38:46下载
    积分:1
  • Java_11183501
    说明:  《Java数据结构和算法》(第2版)介绍了计算机编程中使用的数据结构和算法,对于在计算机应用中如何操作和管理数据以取得最优性能提供了深入浅出的讲解。全书共分为15章,分别讲述了基本概念、数组、简单排序、堆和队列、链表、递归、进阶排序、二叉树、红黑树、哈希表及图形等知识。(&quot Java data structures and algorithms&quot (2) describes computer programming, data structures and algorithms for applications in the computer how to operate and manage data to achieve optimal performance provides simple terms. The book is divided into 15 chapters, describes the basic concepts, arrays, simple sort, heap and queue, linked lists, recursion, advanced sort, binary tree, red-black tree, hash table and graphics knowledge.)
    2011-04-02 23:40:27下载
    积分:1
  • fileupload
    ftp文件上传,applet界面,带进度条(ftp file upload, applet interface, with a progress bar)
    2009-10-13 10:14:05下载
    积分:1
  • bookshop1.0
    这是一个Struts网上商城(图书)的管理系统源代码.(This is a Struts-line Shopping Mall (Book) management system source code.)
    2008-08-14 21:14:01下载
    积分:1
  • Chart1
    《Java语言程序设计》源代码的第一章源代码。("Java Programming Language" source code, in the first chapter, the source code.)
    2006-12-24 15:00:12下载
    积分:1
  • WorkFlow
    WF 从入门到精通 了解工作流的概念和理论 把WF 和BizTalk 与WCF 做比较 开始使用WF 进行编程 怎样使用Visual Studio 工作流支持(Beginning WF Windows Workflow in .NET 4.0.pdf)
    2014-07-23 17:21:16下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载