![]() 41
5.
Inheritance
Inheritance is a type of inherited relationships from
actors to abstract actors. Abstract actor is a type of
actor which contains the common behaviour of two
or more actors.
Such example is shown in Figure 2.9. Both Patron
and Visitor have common behaviour which is
Search Library Inventory. This common behaviour
is then assigned to a new abstract actor called
Customer.
Figure 2.9 Inheritance relationship
Customer
Visitor
Patron
Inheritance
relationship
Check Out
Books
Apply for
Membership
Search Library
Inventory
Abstract Actor
|