TALK IS CHEAP SHOW ME THE CODE!
class A {
static int m;
static void f() {
m = 20;
}
}
class B extends A {
// void f() { 實(shí)例方法不能重寫靜態(tài)方法
//
// }
}
class A {
static int m;
static void f() {
m = 20;
}
}
class B extends A {
// void f() { 實(shí)例方法不能重寫靜態(tài)方法
//
// }
}