class 物件是reference type,會被儲存在heap ; struct 物件是value type,會被存在stack。一般而言, stack 的執行效率會比heap 好,所以一模一樣的事情 ...
確定! 回上一頁