java 關鍵字小結

1.this和superjava 一個類在使用this時調用的是此類中的數據變量和方法,使用super時是調用的父類中的變量和方法this /*父類*/ public class KeyWordFatherTest { public String str="father"; public KeyWordFatherTest(){ System.out.print("父類構造1th
相關文章
相關標籤/搜索