- QUESTION 1
{20}
1.
Aggregation
and
composition are two of the
primary inter
-
object relationships:
a)
Explain aggregation, make use of a diagram in your explanation.
b)
Explain composition, make use of a diagram in your explanation.
2.
Draw a four level class hierarchy diagram of any object showing inheritance hierarchy.
Show inherited properties and methods.
3.
Use an example to explain the concept of method overloading in OOP.
QUESTION
2
{3
0}
You are required to
write
a C# web appli
cation
using Visual Studio 2013,
that will allow for the captur
ing
and view
ing
of
your friend’
s details. The program is also required to
search
for a
list
of a
ll
friend’s
details
who celebrate their
birthday
in a specific month.
The details to be captured are:
Name, Contact Number, Month and Day of their birth.
1.
Design a user friendly interface that caters for all inputs, commands/events (processing) and
outputs using appropriate toolbox objects.
2.
Validate all input fields for
appropriate data before continuin
g.
3.
These details must be saved to a text file called Friends.
4.
The program must allow
you to view all your friends on the screen.
5.
The
user
must
be
allow
ed
to enter a month. The program must search for and display the detail
s of
all friends whose birthday is in that month
.
HINTS:
Use methods
where appropriate, eg. Validate, Write, Read, Reminder, etc.
Use classes appropriately, eg. FriendsClass to store all friends’ details.
Use appropriate decision and looping structu
res.
Use Exception Handling (Try
...
Catch
...
Blocks) were necessary.
Use Messages and Ale
rts were necessary.