TY - CHAP
T1 - Sound and Relaxed Behavioural Inheritance
AU - Amalio, Nuno
N1 - M1 - 35
PY - 2019
Y1 - 2019
N2 - Object-oriented (OO) inheritance establishes taxonomies of OO classes. Behavioural inheritance (BI), a strong version, emphasises substitutability: objects of child classes replace objects of their ascendant classes without any observable effect difference on the system. BI is related to data refinement, but refinement's constrictions rule out many useful OO subclassings. This paper revisits BI at the light of Z and the theory of data refinement. It studies existing solutions to this problem, criticises them, and proposes improved relaxations. The results are applicable to any OO language that supports design-by-contract (DbC). The paper's contributions include three novel BI relaxations supported by a mathematical model with proofs carried out in the Isabelle proof assistant, and an examination of BI in the DbC languages Eiffel, JML and Spec#.
AB - Object-oriented (OO) inheritance establishes taxonomies of OO classes. Behavioural inheritance (BI), a strong version, emphasises substitutability: objects of child classes replace objects of their ascendant classes without any observable effect difference on the system. BI is related to data refinement, but refinement's constrictions rule out many useful OO subclassings. This paper revisits BI at the light of Z and the theory of data refinement. It studies existing solutions to this problem, criticises them, and proposes improved relaxations. The results are applicable to any OO language that supports design-by-contract (DbC). The paper's contributions include three novel BI relaxations supported by a mathematical model with proofs carried out in the Isabelle proof assistant, and an examination of BI in the DbC languages Eiffel, JML and Spec#.
UR - https://www.open-access.bcu.ac.uk/7583/
U2 - 10.1007/978-3-030-15792-0_11
DO - 10.1007/978-3-030-15792-0_11
M3 - Chapter
SN - 2194-7287
T3 - Emergence, Complexity and Computation
SP - 255
EP - 298
BT - From Astrophysics to Unconventional Computation: Essays Presented to Susan Stepney on the Occasion of her 60th Birthday
A2 - Adamatzky, Andrew
A2 - Kendon, Vivien
PB - Springer
CY - Switzerland
ER -