子类型必须能够替换掉它们的基类型,这种原则是
A.开放封闭原则
B.Liskov替换原则
C.单一职责原则
D.接口隔离原则
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/1113765.html
上一篇:常见的四肢创伤包括四肢骨折和____。
下一篇:Albert Einstein is said to have been asked by a student, “ What finding helped you most when you were 1______ the theory of relativity?" Einstein replied without 2______ moment’s hesitation, “Finding how to 3______ about the problem."The same 4__