Professional Documents
Culture Documents
A1.
a)
Structured programming;
Programming using abstract data types;
Object oriented programming.
(15 marks)
b)
A2.
a)
abstract method;
abstract class;
abstraction.
(9 marks)
b)
c)
Turn over]
A3.
a)
object;
class.
(6 marks)
b)
Using code examples describe the following three types of inter-class relationship:
i)
ii)
iii)
inheritance;
association;
aggregation.
(9 marks)
c)
Use a code example to describe what is meant by delegation and explain the
benefits of this technique.
(10 marks)
Section B
Answer Section B questions in Answer Book B
B4.
a)
In the context of a design pattern, explain what is meant by the following: motivation,
prerequisites, structure, participants and consequences.
(10 marks)
b)
Give an example of three different types of design patterns, explaining what type of
problems they aim to resolve, include an example of their use.
(15 marks)
B5.
b)
Discuss how use case diagrams and descriptions provide an overview of the user
requirements of a system. Within your answer include examples from the above
system.
(10 marks)
Turn over]
B6.
a)
Using an object-oriented language that you are familiar with, write code to produce
the following:
i)
ii)
b)