实例.fun()
也可以类.fun()
也可以fun()
但不可以this.fun()
。public class StaticThis {
static void A(){
System.out.println("A");
}
public static void main(String[] args) {
//this.A();
new StaticThis().A();
A();
StaticThis.A();
}
}
原文:https://www.cnblogs.com/zxcoder/p/12240006.html