Example

Two classes: Receipt and Purchase order Line

Extension: enhance this logic

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