Iowa State University Digital Repository (Iowa State University) · 1996 · 165 citations · 9 references
ComputingComputer ScienceFormal MethodsMessage PassingProgramming LanguagesData TypesObject-oriented DesignObject-oriented ProgrammingSoftware DesignSpecification LanguagesType SystemsSubtype DeclarationsSubtypingType Polymorphism
A common change to object-oriented software is to add a new type of data that is a subtype of some existing type in the program. However, due to message passing unchanged parts of the program may now call operations of the new type. To avoid reverification of unchanged code, such operations should have specifications that are related to the specifications of the appropriate operations in their supertypes. This paper presents a specification technique that uses inheritance of specifications to force the appropriate behavior on the subtype objects. This technique is simple, requires little effort by the specifier, and avoids reverification of unchanged code. We present two notions of such behavioral subtyping, one of which is new. We show how to use these techniques to specify examples in C++.
9
Proof of correctness of data representations
C. A. R. Hoare · Acta Informatica · 1972 · 967 citations
Types, Abstraction and Parametric Polymorphism.
John Reynolds · IFIP Congress · 1983 · 771 citations
Specifications and their use in defining subtypes
Barbara Liskov, Jeannette M. Wing · 1993 · 71 citations · Full text
Reasoning about object-oriented programs that use subtypes
Gary T. Leavens, William E. Weihl · 1990 · 62 citations · Full text