在main做宣告使用Container1時,使用set method不管帶入String、int皆不會有問題。 但是在get時,assign進一個變數,需要做型別的轉換,如上:(String) c.
確定! 回上一頁