摘要: 首先是需要创建的类,统一创建在oopTest包下: student类为父类,smallStudent类与bigStudent类继续student类。 student类的代码如下,其中有姓名和成绩两个属性并带有一个显示的方法 1 package oopTest; 2 3 public class St 阅读全文
posted @ 2020-07-05 02:06 zemengchen 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 首先是需要创建的类,统一创建在oopTest包下: student类为父类,smallStudent类与bigStudent类继续student类。 student类的代码如下,其中有姓名和成绩两个属性并带有一个显示的方法 1 package oopTest; 2 3 public c 阅读全文
posted @ 2020-07-05 02:05 zemengchen 阅读(50) 评论(0) 推荐(0) 编辑