Eiffel assertions and the external structure of classes and objects
Version 2 2024-06-16, 13:39Version 2 2024-06-16, 13:39
Version 1 2014-10-27, 16:26Version 1 2014-10-27, 16:26
journal contribution
posted on 2024-06-16, 13:39authored byP Horan
The “external structure” in an object oriented system refers here to the graphs of objects and classes. The class structure graph or class model is derived from the object structure graph or object model, and in this operation structural information is lost, or never made explicit. Although object oriented programming languages capture the class model as declarations, contradictory assumptions about object model properties may be made introducing faults into the design. Consistent assumptions about the object model can be specified in the code using assertions such as Eiffel’s invariants, preconditions and postconditions. Three examples specifying the external structure are considered.
History
Journal
Journal of object technology
Volume
1
Pagination
105-118
Location
Zürich, Switzerland
ISSN
1660-1769
Language
eng
Publication classification
C1 Refereed article in a scholarly journal
Issue
4
Publisher
Chair of Software Engineering, ETH Eidgenössische Technische Hochschule