Object Oriented Programming using C#
Case Study
A constructor is required to assign a new HashSet() to Messages (the set of messages stored). The following methods are
also required :-
void AddMessage(Message msgToAdd) to add a message to the message set
void display(DisplayBoardControl db) to display the messages each day on a display board... initially a
simulated display board
void DailyPurge(ClientBook clients) to a) decrement the days remaining at the end of each day for each
message, b) charge the client for displaying that message and c)
remove all messages that have expired.
private bool ToBeDeleted() a private method used by the DailyPurge() to denote which messages
are to be removed from the message set i.e. those that have expired.
what‘s missing in this equation?
maeRsK inteRnationaL teChnoLogY & sCienCe PRogRamme
You could be one of our future talents
Are you about to graduate as an engineer or geoscientist? Or have you already graduated?
If so, there may be an exciting future for you with A.P. Moller - Maersk.
http://www.maersk.com/mitas
Please click the advert