Good Case For Interfaces

前端 未结 17 2015
眼角桃花
眼角桃花 2020-12-14 04:29

I work at a company where some require justification for the use of an Interface in our code (Visual Studio C# 3.5).

I would like to ask for an Iron Clad reasoning t

17条回答
  •  自闭症患者
    2020-12-14 05:11

    • Test Driven Development
    • Unit Testing

    Without interfaces producing decoupled code would be a pain. Best practice is to code against an interface rather than a concrete implementation. Interfaces seem rubbish at first but once you discover the benefits you'll always use them.

提交回复
热议问题