作者: Heike Wehrheim
关键词: Interpretation (logic) 、 Variety (cybernetics) 、 Algorithm 、 Context (language use) 、 Inheritance (object-oriented programming) 、 Subtyping 、 Computer science 、 Theoretical computer science 、 Hierarchy (mathematics)
摘要: In this paper we investigate the object-oriented notion of subtyping in context behavioral formalisms. Behavioral formalisms are used to describe dynamic behavior active objects, viz. protocols interaction that objects have obey. Subtyping OO-formalisms is closely related concept inheritance. The central issue choice relations among classes principle substitutability: an instance subtype should be usable wherever supertype was expected. Depending on interpretation “usable”, obtain a variety relations: stronger relations, allowing sharing instances different clients, and weaker restricting possibilities interference clients instance. taxonomically ordered hierarchy. Substitutability formalized via testing scenarios, which provide alternative characterizations for relations.