文件名称:Java类的设计
介绍说明--下载内容来自于网络,使用问题请自行百度
假定根据学生的3门学位课程的分数决定其是否可以拿到学位,对于本科生,如果3门课程的平均分数超过60分即表示通过,而对于研究生,则需要平均超过80分才能够通过。根据上述要求,请完成以下Java类的设计:
(1)设计一个基类Student描述学生的共同特征。
(2)设计一个描述本科生的类Undergraduate,该类继承并扩展Student类。
(3)设计一个描述研究生的类Graduate,该类继承并扩展Student类。
设计一个测试类StudentDemo,分别创建本科生和研究生这两个类的对象,并输出相关信息。(It is assumed that a degree is determined based on the score of a student's 3 degree course. For undergraduate students, if the average score of the 3 courses exceeds 60, the average score is more than 80 points for graduate students. According to the above requirements, please complete the following Java class design:)
(1)设计一个基类Student描述学生的共同特征。
(2)设计一个描述本科生的类Undergraduate,该类继承并扩展Student类。
(3)设计一个描述研究生的类Graduate,该类继承并扩展Student类。
设计一个测试类StudentDemo,分别创建本科生和研究生这两个类的对象,并输出相关信息。(It is assumed that a degree is determined based on the score of a student's 3 degree course. For undergraduate students, if the average score of the 3 courses exceeds 60, the average score is more than 80 points for graduate students. According to the above requirements, please complete the following Java class design:)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
| 文件名 | 大小 | 更新时间 |
|---|---|---|
| Java类的设计.doc | 1085882 | 2018-06-18 |
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
