Abstract
In a previous article I described how Z could be used to specify certain aspects of object-oriented systems. This paper continues that approach by describing how Z can be used to describe relationships between classes. A Z model of a class hierarchy can be created. Two different but related semantics are given for this model. In the first, extensional, semantics a class is related to the set of object identifiers of objects belonging to the class and inheritance is interpreted as set inclusion. In the second, intensional, semantics a class is related to a definition of the intended behaviour of the class, and inheritance is interpreted as a particular kind of satisfaction relation between behaviour specifications. I give sound (but not complete) conditions for this relation to hold.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Cusack E. Inheritance in object oriented Z. In America P (ed), ECOOP ‘81: European Conference on Object-oriented Programming, Lecture Notes in Computer Science No. 512, pp 167 — 179. Springer Verlag, 1991.
Hall A. Using Z as a Specification Calculus for Object-Oriented Systems. In Bjorner D, Langmaack H (eds), Proceedings of VDM 90, Lecture Notes in Computer Science No. 428, pp 290 — 318. Springer Verlag, 1990.
Lano K, Haughton H. Reuse and Adaptation of Z Specifications. In Bowen JP, Nicholls JE (eds), Z User Workshop London 1992, Workshops in Computing, pp 62 — 90. Springer Verlag, 1992.
Liskov B, Wing JM. A New Definition of the Subtype Relation. In Nierstrasz OM (ed), Proceedings of ECOOP ‘83 - Object-Oriented Programming, Lecture Notes in Computer Science No. 707, pp 118 — 141. Springer Verlag, 1993.
Spivey JM. The Z Notation: A Reference Manual. Prentice Hall, Second edition, 1992.
Stepney S, Barden R, Cooper D. Object Orientation in Z. Workshops in Computing. Springer Verlag, 1992.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1994 British Computer Society
About this paper
Cite this paper
Hall, A. (1994). Specifying and Interpreting Class Hierarchies in Z. In: Bowen, J.P., Hall, J.A. (eds) Z User Workshop, Cambridge 1994. Workshops in Computing. Springer, London. https://doi.org/10.1007/978-1-4471-3452-7_8
Download citation
DOI: https://doi.org/10.1007/978-1-4471-3452-7_8
Publisher Name: Springer, London
Print ISBN: 978-3-540-19884-0
Online ISBN: 978-1-4471-3452-7
eBook Packages: Springer Book Archive