class A{
static String name="tom";
static int getX() {
return 2;
}
int getY() {
return 3;
}
}
class B extends A{
static String name="Tuny";
static int getX() {
return 4;
}
int getY() {
return 5
java学习-关于上转型的一道题
最新推荐文章于 2021-12-12 15:09:49 发布