文件名称:student
-
所属分类:
- 标签属性:
- 上传时间:2013-11-12
-
文件大小:13.56kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
对学生管理系统进行如下修改。
(1)引入一个抽象基类Person,并将showMe方法定义为抽象方法。
(2)将类Student(本科)改为由类Person派生的类Major,并给出showMe方法的具体实现
(3)再派生一个硕士研究生类Master(硕士)和一个博士研究生类Doctor(博士) ,并通过方法覆盖实现它们各自的showMe方法
(4)分别为Major、Master、Doctor类添加至少两个新的具有不同访问权限的成员变量和对应的访问方法(类似Set和Get函数)
(5)为Student类提供比较Student, Major, Master, Doctor的对象内容是否相等的功能(要求覆盖Object类的equals方法)
-Student management system be modified as follows.
(A) introducing an abstract base class Person, and showMe method is defined as abstract methods.
(2) the class Student (undergraduate) replaced by the class Person class that derives Major, and gives the method implementation showMe
(3) and then derive a graduate class Master (MA) and a doctoral student class Doctor (PhD), and through the method overriding methods to achieve their respective showMe
(4) respectively, Major, Master, Doctor add at least two new classes have different access rights of member variables and the corresponding access method (similar to the Set and Get functions)
(5) to provide comparative Student class Student, Major, Master, Doctor of the contents of the object are equal functionality (requires override the equals method of the Object class)
(1)引入一个抽象基类Person,并将showMe方法定义为抽象方法。
(2)将类Student(本科)改为由类Person派生的类Major,并给出showMe方法的具体实现
(3)再派生一个硕士研究生类Master(硕士)和一个博士研究生类Doctor(博士) ,并通过方法覆盖实现它们各自的showMe方法
(4)分别为Major、Master、Doctor类添加至少两个新的具有不同访问权限的成员变量和对应的访问方法(类似Set和Get函数)
(5)为Student类提供比较Student, Major, Master, Doctor的对象内容是否相等的功能(要求覆盖Object类的equals方法)
-Student management system be modified as follows.
(A) introducing an abstract base class Person, and showMe method is defined as abstract methods.
(2) the class Student (undergraduate) replaced by the class Person class that derives Major, and gives the method implementation showMe
(3) and then derive a graduate class Master (MA) and a doctoral student class Doctor (PhD), and through the method overriding methods to achieve their respective showMe
(4) respectively, Major, Master, Doctor add at least two new classes have different access rights of member variables and the corresponding access method (similar to the Set and Get functions)
(5) to provide comparative Student class Student, Major, Master, Doctor of the contents of the object are equal functionality (requires override the equals method of the Object class)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
student system.java/
student system.java/.classpath
student system.java/.project
student system.java/.settings/
student system.java/.settings/org.eclipse.jdt.core.prefs
student system.java/bin/
student system.java/bin/Doctor.class
student system.java/bin/Major.class
student system.java/bin/Master.class
student system.java/bin/Person.class
student system.java/bin/StuKeyboardInput.class
student system.java/bin/StuMenu.class
student system.java/bin/StuQuery.class
student system.java/bin/Stumain.class
student system.java/src/
student system.java/src/Doctor.java
student system.java/src/Major.java
student system.java/src/Master.java
student system.java/src/Person.java
student system.java/src/StuKeyboardInput.java
student system.java/src/StuMenu.java
student system.java/src/StuQuery.java
student system.java/src/Stumain.java
student system.java/.classpath
student system.java/.project
student system.java/.settings/
student system.java/.settings/org.eclipse.jdt.core.prefs
student system.java/bin/
student system.java/bin/Doctor.class
student system.java/bin/Major.class
student system.java/bin/Master.class
student system.java/bin/Person.class
student system.java/bin/StuKeyboardInput.class
student system.java/bin/StuMenu.class
student system.java/bin/StuQuery.class
student system.java/bin/Stumain.class
student system.java/src/
student system.java/src/Doctor.java
student system.java/src/Major.java
student system.java/src/Master.java
student system.java/src/Person.java
student system.java/src/StuKeyboardInput.java
student system.java/src/StuMenu.java
student system.java/src/StuQuery.java
student system.java/src/Stumain.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.