计算机科学 > 软件工程
[提交于 2013年5月27日]
标题:Relaxing Behavioural Inheritance
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Object-oriented (OO) inheritance allows the definition of families of classes in a hierarchical way. In behavioural inheritance, a strong version, it should be possible to substitute an object of a subclass for an object of its superclass without any observable effect on the system. Behavioural inheritance is related to formal refinement, but, as observed in the literature, the refinement constraints are too restrictive, ruling out many useful OO subclassings. This paper studies behavioural inheritance in the context of ZOO, an object-oriented style for Z. To overcome refinement's restrictions, this paper proposes relaxations to the behavioural inheritance refinement rules. The work is presented for Z, but the results are applicable to any OO language that supports design-by-contract.
提交历史
来自:EPTCS[v1] 2013年5月27日 星期一 05:40:17 UTC