Chapter 04
Chapter 04
Orientation?
Person HourlyPaidDriver
Name StartDate
Date of birth StandardRate
Gender OvertimeRate
Title LicenceType
06 January 2002 © Bennett, McRobb and Farmer 2002 12
Inheritance
The whole description of a superclass
applies to all its subclasses, including:
– Information structure
– Behaviour
Often known loosely as inheritance
(Actually, inheritance is the facility in
an O-O language that implements
generalization / specialization)
<<entity>>
Campaign
title
campaignStartDate
campaignFinishDate
getCampaignAdverts()
addNewAdvert() <<entity>>
Campaign
title
campaignStartDate
campaignFinishDate
getCampaignAdverts()
addNewAdvert()