Is subclassing in Objective-C a bad practice?

前端 未结 9 795
一个人的身影
一个人的身影 2020-12-13 05:42

After reading lots of blogs, forum entries and several Apple docs, I still don\'t know whether extensive subclassing in Objective-C is a wise thing to do or not

9条回答
  •  情深已故
    2020-12-13 05:58

    Apple indeed appears to passively discourage subclassing with Objective-C.

    It is an axiom of OOP design to Favor composition over implementation.

提交回复
热议问题