我們可以對盤子做兩件事,往盤子裡set() 新東西,以及從盤子裡get() 東西。 // Generic class Plate<T> { private T item; public Plate(T t){item=t;}
確定! 回上一頁