View Single Post
  #1 (permalink)  
Old 07-03-2007, 04:56 PM
ai_2007 ai_2007 is offline
Member
 
Join Date: Jun 2007
Posts: 21
ai_2007 is on a distinguished road
Writing the filter method
I have created a class 'Organizer' that has filter methods that are supposed to :

a) display list of events between any two days.
b) display wedding anniversaries and birth day events.
c) Display events for any month.

The 'Organizer' class collects information like, date, name, hphone, email, type of relation and event (stack/Q) type through filing methods.

There is an ADT class 'Event' that has information: event type and date.

There is an ADT class 'Dear' that has information: name, hphone, email, type of relation and event(stack/Q) type.


How do I display only list of events between two dates(a)?

And for (b), is this correct :
Code:
if((b[i] == wedding anniversaries)|| (b[i] == birthdays)) return b[i];
For (c) it is just the matter of displaying all the information gathered correct?

Last edited by ai_2007 : 07-03-2007 at 04:59 PM.
Reply With Quote
Sponsored Links