Inheritance Using Contracts & Object Composition

  • Authors:
  • Wolfgang Weck

  • Affiliations:
  • -

  • Venue:
  • ECOOP '97 Proceedings of the Workshops on Object-Oriented Technology
  • Year:
  • 1997

Quantified Score

Hi-index 0.00

Visualization

Abstract

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