文件名称:BaseDerived
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2015-11-30
- 文件大小:
- 15kb
- 下载次数:
- 0次
- 提 供 者:
- 王*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个具有两个方法的基类base,并在第一个方法内调用第二个方法(第二个方法体内写任意输出语句即可);然后编写一个派生类derived,并覆盖父类中的第二个方法;产生一个derived对象,将它做向上的类型转换(即转换为base类型),并调用第一个方法-Write a base class base with two methods, and call second methods in the first method (second methods to write arbitrary output statements and then write a derived class derived, and cover the parent class of second methods produce a derived object, will it do the type conversion (that is converted to base type), and call the first method
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BaseDerived\build\classes\basederived\Base.class
...........\.....\.......\...........\BaseDerived.class
...........\.....\.......\...........\Derived.class
...........\build.xml
...........\manifest.mf
...........\nbproject\build-impl.xml
...........\.........\genfiles.properties
...........\.........\private\private.properties
...........\.........\.......\private.xml
...........\.........\project.properties
...........\.........\project.xml
...........\src\basederived\BaseDerived.java
...........\build\classes\basederived
...........\.....\classes
...........\nbproject\private
...........\src\basederived
...........\build
...........\nbproject
...........\src
BaseDerived