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
子类重写父类方法
最新推荐文章于 2024-01-05 16:03:11 发布