修飾詞(Modifier)
任何類別和屬性都會有修飾詞,修飾詞也有順序
存取修飾詞 (public, private ....)
override (繼承才會到)
dynamic (串接OC或是KVO才會用到)
mutating
lazy
final
static
owned (weak, ....)
存取修飾詞只有internal不寫,其他都要寫 (例如 private, public...)
Delegate一定要接weak (原因請看ARC + Retain Cycle那篇)
Last updated