Normal class-based code inheritance across component boundaries creates a dependency between the involved components. To avoid this, a specification of the inherited class must be part of the respective component’s contract and the inheriting class must be specified with reference to this specification only. With this, inheritance can be replaced by object composition without sacrificing the possibility of static analysis, yet being more flexible.
CITATION STYLE
Weck, W. (1998). Inheritance using contracts & Object composition. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 1357, pp. 384–388). Springer Verlag. https://doi.org/10.1007/3-540-69687-3_78
Mendeley helps you to discover research relevant for your work.