登录
首页 » Java » Homework08

Homework08

于 2020-12-07 发布 文件大小:6KB
0 128
下载积分: 1 下载次数: 0

代码说明:

  利用前面提到的SupplyDepot、Transport和CapableOfBeingRefefuelled类/接口,为Air-plane增加一个main()方法,然后为supplyDepot等增加必要的字段、参数和代码,以便CapableOfBeingRefefuelled能够告诉service()方法需要加多少油。同时要确保Depot中的油应相应地减少,而实现CapableOfBeingRefefuelledi的类对象应相应地增加。(Using the upplyDepot, Transport and ApableOfBeingRefefuelled classes/interfaces mentioned above, add a main () method to Air-plane, and then add the necessary fields, parameters and codes to supplyDepot, so that CapableOfBeingRefefuelled can tell service () how much fuel the method needs. At the same time, we should ensure that the oil in Depot should be reduced accordingly, and the class objects that implement Capable OfBeingRefefuelledi should be increased accordingly.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • java-paike.rar
    基于java的自动排课系统设计与实现,开发文档。(paike )
    2020-12-25 17:39:04下载
    积分:1
  • RecognizerResultsIntent
    Constants for intents related to showing speech recognition results.
    2013-12-19 11:04:11下载
    积分:1
  • ContentEncodingList
    ContentEncodingList extends SIPHeaderList.
    2014-01-08 10:56:38下载
    积分:1
  • L1_helloworld
    Java基本类型,基本类型之间的转化。运算符的使用。(Basic types of Java,Between the basic types of transformation.The use of the operator.)
    2015-07-28 15:29:11下载
    积分:1
  • Employee
    创建四个类,分别为Employee类、SalariedEmplyee类、HourlyEmployee类和CommissionEmployee类。其中Employee类是其他三个类的父类。Employee类包含姓名和身份证号。除此之外,SalariedEmployee类还应包含每月工资;HourlyEmployee类还应包含每小时工资数和工作时间数;CommissionEmployee还应包含提成比例和销售总额。每个类都应有合适的构造方法、数据成员的设置和读取方法。编写一个应用程序,创建这些类的对象,并输出与对象相关的信息。注意子类有时需调用父类的构造方法和被覆盖的方法,成员变量定义为private,对有些方法实现重载。 (Create four categories, namely the Employee class, SalariedEmplyee class, HourlyEmployee classes and CommissionEmployee classes. Employee class is the parent class where the other three classes. Employee class contains the name and ID number. In addition, SalariedEmployee class also includes a monthly salary HourlyEmployee class should also include the number of hourly wages and the number of working hours CommissionEmployee should also include the proportion and total sales commission. Each class should have the right to set and read the constructor method, data members. Write an application to create objects of these classes, and output information associated with the object. Sometimes need to call attention to a subclass of the parent class constructor and methods are covered, member variables defined as private, to achieve overloading of some methods.)
    2013-11-27 11:43:06下载
    积分:1
  • jwxtbaseonStruts
    一篇论文 struts架构设计的教务系统 很好的参考价值 通过cnki数据库下载(A paper struts system architecture design of the Senate passed a very good reference value CNKI Database Download)
    2008-08-12 11:28:41下载
    积分:1
  • Proficient-at-JAVA-in-21-Days
    Java教程,21天精通JAVA电子书,清晰版。(Java Tutorial, 21 days proficient JAVA books, clear version.)
    2013-11-22 19:30:35下载
    积分:1
  • Student-attendance
    学生出勤管理系统的开发与应用 有较详细的源代码 有需要的话可以参考(Student attendance management system development and application of more detailed source code if necessary can refer to)
    2013-04-04 20:46:52下载
    积分:1
  • ssh_dormitory
    基本的jsp+servlet的宿舍管理系统,附带数据库,是可以运行的哦!亲,需要的可以下哦(Basic JSP+ servlet dormitory management system, with a that can be run! Pro, need can oh)
    2015-11-03 22:44:05下载
    积分:1
  • mybatis03
    说明:  java系列编程中的mybatis练习,mybatis小练习(Mybatis exercise in java series programming)
    2020-06-25 14:00:01下载
    积分:1
  • 696518资源总数
  • 104734会员总数
  • 23今日下载