JAVAにおけるsuper()とthis()の役割
878 ワード
super this。
"this", , :
1。 。this(a,b) 。 this , , 。
2。 static , 。 ,this final , , C ; , 。 , , 。 C final , 。
"super"。 "this" , 。
1。 。 , , 。
2。 static 。 super.method()。
, , super.method() some_var.method() , 。 ,"super" 。
? 。java : public static 。
, super , , , super super.method() , , 。
, super.xxx , “super::xxx” 。
super , "==", , ? , , this 。
3。super protected 。 "super" , protected , 。