String name = null; //定义两个属性 public People(String name,int age) //定义父类的构造函数 public Student(String name,int age) //子类的构造函数 ..
基于1个网页-相关网页
定义父类的构造函数
Define the constructor of the parent class
以上为机器翻译结果,长、整句建议使用 人工翻译 。
应用推荐
模块上移
模块下移
不移动