里氏代换原则
2014-05-11 17:23
302 查看
若对于每一个类型S的对象o1,都存在一个类型T的对象o2,使得在所有针对T编写的程序P中,用o1替换o2后,程序P的行为功能不变,则S是T的子类型。
What is wanted here is something like the following
substitution property: If for each object o1 of type S there is an
object o2 of type T such that for all programs P defined in terms of T,
the behavior of P is unchanged when o1 is substituted for
o2 then S is a subtype of T.
What is wanted here is something like the following
substitution property: If for each object o1 of type S there is an
object o2 of type T such that for all programs P defined in terms of T,
the behavior of P is unchanged when o1 is substituted for
o2 then S is a subtype of T.
相关文章推荐
- requirejs、backbone.js配置
- iOS开发 简单实现视频音频的边下边播
- 用python爬虫抓取韩寒的blog
- 内存对齐详解
- Spring基于 Annotation 的简单介绍
- 很无语,吐个槽
- 很无语,吐个槽
- 全方位的软件测试管理 - 概要描述
- cora java volume I 学习笔记
- 很无语,吐个槽
- SRM 447
- 《Linux内核设计与实现》读书笔记(十三)- 虚拟文件系统
- 微信公众平台开发教程 订阅号与服务号的区别
- 邮件发送测试页面。前台页面
- int main(int argc,char* argv[])详解
- Android 的下拉列表框使用
- tiny6410裸机实验第5章--------------DDR初始化等(代码)
- 探索式的软件测试执行 - 概要描述
- 数据结构--二叉树遍历前序、中序、后序(java实现)
- 利用StarWind 构建SAN存储