子类型必须能够替换掉它们的基类型,这种原则是
A.开放封闭原则
B.Liskov替换原则
C.单一职责原则
D.接口隔离原则
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/1113765.html
上一篇:作风
下一篇:Run across the Sahara Desert The Sahara Desert is the largest desert in the world. It goes across Africa from Senegal to Egypt. The Sahara Desert is an unfriendly environment. During the day it's very hot, and at night it's sometimes very cold. It is