Professional Documents
Culture Documents
INSTRUCTIONS:
Attempt Question 1 (compulsory - 30 marks) and any other TWO Questions (15 marks each).
II. Private
111. Protected (3 marks)
First of all customer and order are identified as the two elements of the sysyem and
they have one to many relationship because a customer can have more than one
order.
We would keep the order class an an abstract class and it has two concrete classes
(inheritance )special order and normal order. The two inheriting classes have all
properties of order class. In addition they have functions like dispatch 0 and receive
o
Draw a class diagram from above narrative and show all the relationships
(6 marks)
b) Model the relationship between a car (that has an engine and a color) and its owners
(having a name) in a UML class diagram. A car can have several owners over time, but
only one or none owner at a time. (3marks)
c) What is the difference between an event and an action? (2marks)
d) Describe four types classifications as used in class diagram (4 marks)
i.Dependency
ii.Aggregation
iii.Composition (9 marks)
Page 2 of 3
b) Describe 3 advantages of object-orientation to systems development.
b) In a supermarket customers swipe their credit card at the point of sale system. The
validity of the card is verified by the financial system before purchases are made. If the
card is valid, customers make purchases as long as the value is within credit limit the
credit card account is then debited with the value of the purchases and the card is
returned Customers wishing to purchase beyond the credit limit are allowed to make
cash payment for the difference for which a receipt is issued.
c) Briefly discuss the UML development process clearly stating what happens at every stage
(8marks)
Page 3 of 3