OO Software Design Principles

后端 未结 8 602
梦毁少年i
梦毁少年i 2020-12-23 20:00

I am a huge fan of software design principles such as SOLID and DRY. What other principles exist for OO software design?

Note. I’m

8条回答
  •  一向
    一向 (楼主)
    2020-12-23 20:42

    When your API are expected to grow, use Abstract class instead of Interface. Adding a new method in Interface requires to change ALL the classes which implement it.

提交回复
热议问题