Skip to main content

Specifying and Interpreting Class Hierarchies in Z

  • Conference paper

Part of the book series: Workshops in Computing ((WORKSHOPS COMP.))

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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.

    Google Scholar 

  2. 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.

    Google Scholar 

  3. 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.

    Google Scholar 

  4. 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.

    Google Scholar 

  5. Spivey JM. The Z Notation: A Reference Manual. Prentice Hall, Second edition, 1992.

    Google Scholar 

  6. Stepney S, Barden R, Cooper D. Object Orientation in Z. Workshops in Computing. Springer Verlag, 1992.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics