Affiliation:
1. Department of Computing, University of Brighton, UK
Abstract
Abstract
The aim of this article is to clarify the concepts of behavioural subtype and substitutability that are used to establish the safety of dynamic binding and run-time polymorphism in object-oriented programming. A new model of object behaviour is introduced and used to define the states of an object and the notion of object type. A notion of simulation between object behaviours is defined and a subtype relation between object types is derived from it. The syntax and structural operational semantics of an elementary OOPL is given, and the concepts of object and type substitutability are defined. It is shown formally that simulation is equivalent to object substitutability and that subtyping is equivalent to type substitutability.
Publisher
Association for Computing Machinery (ACM)
Subject
Theoretical Computer Science,Software
Cited by
4 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Behavioral Subtyping relations for active objects;Formal Methods in System Design;2003
2. Inheritance of behavior;The Journal of Logic and Algebraic Programming;2001-03
3. A Coalgebraic Semantics of Subtyping;RAIRO - Theoretical Informatics and Applications;2001-01
4. A Coalgebraic Semantics of Subtyping;Electronic Notes in Theoretical Computer Science;2000