Example

Two classes: Receipt and Purchase order Line

  • default attributes, methods
  • default business logic: inspect Quality on receipt

Extension: enhance this logic

  • subclass Receipt
  • override inspection method
  • change logic to include checks against supplier tables, and hazardous or high value products