上述例子中我定義了一個class及一個struct,可以看到沒有初始值的class會爆出錯誤。 可以如此的修正 class MyClass { var student:String init(student: ...
確定! 回上一頁