引用本文:王云峰,李必信,郑国梁.面向对象Z的子类型继承和推理规则.软件学报,2000,11(4):481-486
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 4238次   下载 5558 本文二维码信息
码上扫一扫!
分享到: 微信 更多
面向对象Z的子类型继承和推理规则
王云峰1,2, 李必信1, 郑国梁1
1.南京大学计算机软件新技术国家重点实验室,南京,210093;2.解放军理工大学气象学院,南京,211101
摘要:
讨论了COOZ(complete object-oriented Z)中的继承关系,将继承分为增量继承和子类型化继承,并重点讨论了子类型化继承.定义了一种行为子类型化继承,证明了该方法的合理性,并据此定义了COOZ的规约继承及规约继承的推理规则.所讨论的子类型化方法与E.Cusack等人的方法相比,具有可构造性,并且比Liskov等人的方法具有更大的灵活性.
关键词:  形式方法,面向对象,继承,子类型,形式规约.
DOI:
分类号:
基金项目:本文研究得到国家自然科学基金(No.69673006)和国家“九五”科技攻关项目基金(No.98-780-01-07-06)资助.
On Subtyping Inheritance and Inference Rules in Object-Oriented Z
WANG Yun-feng,LI Bi-xin,ZHENG Guo-liang
Abstract:
The inheritance relation of COOZ is discussed. It is divided into increasing inheritance and subtyping inheritance. The latter is studied and a behavioral subtyping inheritance is defined, by which the specification inheritance and its inference rules are defined. The soundness of the method is proved. The offered method is constructive compared with that of E. Cusack and is more flexible than that of Liskov et al.
Key words:  Formal method, object oriented, inheritance, subtyping, formal specification.