當子類別的成員方法與父類別的成員方法衝突時,須在使用父類別成員方法時於前面加上super.。 範例:. class test1{ private int x, y; public test1(int x, int y){
確定! 回上一頁