|
Creating a stack with data
I have to create a class 'Dear' that has a stack that will allow addition of 'event' information into it. The event information will include event type and date of event. All the data has to be sorted automatically while it is being added into the stack.
Please help me with this because I am not sure of how to do this.
|