What is the name of this bad practice / anti-pattern?

前端 未结 14 2107
独厮守ぢ
独厮守ぢ 2021-02-03 18:02

I\'m trying to explain to my team why this is bad practice, and am looking for an anti-pattern reference to help in my explanation. This is a very large enterprise app, so here

14条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-03 18:26

    Normally a better approach (IMHO) would be to use interfaces instead of inheritance

    then it is just a matter of checking whether the object has implemented the interface or not.

提交回复
热议问题