package com.sgg.chongxiechongzai;
public class Person {
String name;
int age;
public Person() {
super();
}
public Person(String name, int age) {
super();
this.name = name;
this.age = age;
}
public void eat() {
System.out.println("吃饭");
}
public
子类重写父类方法
最新推荐文章于 2022-11-24 16:03:58 发布