文件名称:Emperiment3
介绍说明--下载内容来自于网络,使用问题请自行百度
添加Student类和Teacher类,要求两个类均继承Person类,各自特殊的属性为学号,工号。要求添加的方法包括各种构造函数,getter/setter方法、toString方法,equals方法,以及compareTo方法。其中toString方法,equals方法子类对父类方法进行覆盖;compareTo方法根据学号或工号进行比较,实现从Person中继承的抽象方法,返回-1,0,1分别代表小于、等于、大于。-Person class inheritance, special property of the respective school number, work number. Required to add a variety of methods, including constructors, getter/setter methods, toString method, equals methods, and compareTo method. ToString method which, equals method subclasses to override the parent class method compareTo method based on the student number or job number to compare, from a Person in the inherited abstract method that returns-1, 0, representing less than, equal to, large at.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Emperiment3/.classpath
Emperiment3/.project
Emperiment3/多态实验.doc
Emperiment3/src/com/wgw/tools/ArrayTools.java
Emperiment3/src/com/wgw/test/Text.java
Emperiment3/src/com/wgw/entities/Person.java
Emperiment3/src/com/wgw/entities/Student.java
Emperiment3/src/com/wgw/entities/Teacher.java
Emperiment3/bin/com/wgw/tools/ArrayTools.class
Emperiment3/bin/com/wgw/test/Text.class
Emperiment3/bin/com/wgw/entities/Person.class
Emperiment3/bin/com/wgw/entities/Student.class
Emperiment3/bin/com/wgw/entities/Teacher.class
Emperiment3/.settings/org.eclipse.jdt.core.prefs
Emperiment3/src/com/wgw/tools
Emperiment3/src/com/wgw/test
Emperiment3/src/com/wgw/entities
Emperiment3/bin/com/wgw/tools
Emperiment3/bin/com/wgw/test
Emperiment3/bin/com/wgw/entities
Emperiment3/src/com/wgw
Emperiment3/bin/com/wgw
Emperiment3/src/com
Emperiment3/bin/com
Emperiment3/src
Emperiment3/bin
Emperiment3/.settings
Emperiment3
Emperiment3/.project
Emperiment3/多态实验.doc
Emperiment3/src/com/wgw/tools/ArrayTools.java
Emperiment3/src/com/wgw/test/Text.java
Emperiment3/src/com/wgw/entities/Person.java
Emperiment3/src/com/wgw/entities/Student.java
Emperiment3/src/com/wgw/entities/Teacher.java
Emperiment3/bin/com/wgw/tools/ArrayTools.class
Emperiment3/bin/com/wgw/test/Text.class
Emperiment3/bin/com/wgw/entities/Person.class
Emperiment3/bin/com/wgw/entities/Student.class
Emperiment3/bin/com/wgw/entities/Teacher.class
Emperiment3/.settings/org.eclipse.jdt.core.prefs
Emperiment3/src/com/wgw/tools
Emperiment3/src/com/wgw/test
Emperiment3/src/com/wgw/entities
Emperiment3/bin/com/wgw/tools
Emperiment3/bin/com/wgw/test
Emperiment3/bin/com/wgw/entities
Emperiment3/src/com/wgw
Emperiment3/bin/com/wgw
Emperiment3/src/com
Emperiment3/bin/com
Emperiment3/src
Emperiment3/bin
Emperiment3/.settings
Emperiment3
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.