| 摘要: |
| 讨论了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. |