Is subclassing in Objective-C a bad practice?

前端 未结 9 800
一个人的身影
一个人的身影 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 06:14

    Personally, I follow this rule: I can create a subclass if it respects the Liskov substitution principle.

提交回复
热议问题