上面的 Home class 並沒有任何初始器,儲存屬性(Stored Property) roomCount 預設值為2。 ... 如果Home 是Struct 呢? 思考一下下面的Playground 程式碼區 ...
確定! 回上一頁