Object models (as described for example using class diagrams) often
· generalisation-specialisation (inheritance)
· whole-part (aggregation)
· object is instance of class
Using whichever of these relations you feel is most appropriate, draw
simple diagrams to
model the ideas in each the following sentences (you should use the
notation and include labels and numbers where appropriate).
i. PCB is responsible to manage Cricket team that contains players.
ii. A four sided shape is a square or rectangle or a parallelogram.
iii. Fred's car is a Honda
iv. Files contain records and records contain either numerical values
or text or both.
v. University has departments and departments has faculty.