2
執行初始化程序必須完成什麼?執行初始化程序必須完成什麼?
a. All properties need to be initialized with a value
b. All properties need to be explicitly assigned a value.
c. All non-Optional properties need to be initialized.
Sorry, that's incorrect.
Optionals need to be initialized as well.
d. The object needs to be created
什麼答案是正確的,爲什麼?
我認爲第一個'a'答案是正確的,對象應該初始化它的所有屬性,並且調用'super'(應該初始化'superclass'的所有屬性) – gaussblurinc