Corrected class hierarchy of Liskov Substitution principle.
违反Liskov替换原则类结构图。
All of that is possible, but only if you follow a related principle: the Liskov Substitution principle.
所有这些都是可能的,只要你能够遵循一个相关的原则:Liskov替代原则。
Roughly stated, you are following the Liskov Substitution Principle if you can use any implementation of an abstraction in any place that accepts that abstraction.
粗略地说,如果你可以在任何接受抽象的地方使用那个抽象的任何实现,就是在遵循Liskov替换原则。
Just like factories give me the benefits of the Liskov substitution Principle in OO design, intermediation gives me the benefits of substitution in messaging design.
就像在OO设计中,工厂给与我Liskov替换原则的便利,在消息传递设计中,仲裁为我带来了替换的便利。
Just like factories give me the benefits of the Liskov substitution Principle in OO design, intermediation gives me the benefits of substitution in messaging design.
就像在OO设计中,工厂给与我Liskov替换原则的便利,在消息传递设计中,仲裁为我带来了替换的便利。
应用推荐