为什么init方法中官方推荐最好直接访问成员变量而不是通过setter?

今天看官方文档时看到一段话,理解不了,求指教。
原文:
You should always access the instance variables  directly from within an initialization method because at the time a property is set, the rest of the object may not yet be completely initialized. Even if you don’t provide custom accessor methods or know of any side effects from within your own class, a future subclass may very well override the behavior.

尤其是because后面那段话,看不懂。

你可能感兴趣的:(为什么init方法中官方推荐最好直接访问成员变量而不是通过setter?)