SOLID Design Principles : Liskov Substitution Principle and Dependency Inversion Principle
问题 Just a thought and a question to the Stack Overflow and Microsoft Development Community about the OO software design principles called SOLID. What is the difference between the Liskov Substitution Principle and the Dependency Inversion Principle please ? I have thought about this for a while and I'm not sure of the difference. Please could you let me know ? Any thoughts / feedback very welcome. 回答1: Liskov's substitution Principle states the following: A class should be directly substitutable