违反Liskov替换原则类结构图。
里氏替换原则就是一种保证正确使用继承的方法。
The "Liskov's Substitution Principle" is just a way of ensuring that inheritance is used correctly.
粗略地说,如果你可以在任何接受抽象的地方使用那个抽象的任何实现,就是在遵循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.
就像在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.
如果我前面所说的,使用开闭原则最通常的做法就是使用多态去用一个全新的类替换程序中现存的一部分。
As I said earlier, the most common manifestation of the Open Closed Principle is using polymorphism to substitute an existing part of the application with a brand new class.
采用某个基于面向服务的体系结构原则的渐进式遗留系统转换过程,是有选择地替换该公司的应用程序组合的更加经济合算和风险更低的方法。
A gradual legacy transformation process based on Service-Oriented Architecture principles is a more cost-effective and less risky way of selectively replacing the application portfolio of the company.
通常身体能在24小时内替换收集的体积,捐献者可以一周捐献两次,尽管这个原则在每个国家不同。
The body will typically replace the collected volume within 24 hours, and donors typically donate up to twice a week, though this varies by country.
在对原有系统改造的基础上,我们按照有计划逐步替换的原则,设计并实现了一种新的码头管理系统。
On the basis of the original system, in accordance with the principle of gradual replacement of the system, we design and implement a new terminal management system.
为此,本文基于刚度等效的原则,提出了一种带缝钢板剪力墙与人字形中心支撑的刚度替换计算方法。
The different sizes of 6 kinds of steel shear walls convers 6 kinds of concentrically braces by the sectional area equivalent formula.
为此,本文基于刚度等效的原则,提出了一种带缝钢板剪力墙与人字形中心支撑的刚度替换计算方法。
The different sizes of 6 kinds of steel shear walls convers 6 kinds of concentrically braces by the sectional area equivalent formula.
应用推荐