What is the dependency inversion principle and why is it important?

前端 未结 15 1147
别那么骄傲
别那么骄傲 2020-11-28 00:06

What is the dependency inversion principle and why is it important?

15条回答
  •  悲&欢浪女
    2020-11-28 00:52

    Basically it says:

    Class should depend on abstractions (e.g interface, abstract classes), not specific details (implementations).

提交回复
热议问题