[Java] instanceof & getClass · instanceof,除了可以得到物件的型別,也可以得到物件的繼承關係。 · getClass搭配equals,只能判斷物件與類別的直接關係, ...
確定! 回上一頁