Requirements - * Sort/segregate students on the basis of various criterias. * Right now, we will be sorting on the basis of students age but in future different kind of sorting requirements may come. * Future requirements can be any like sort students on the basis of their father’s age, segregate students on the basis of grades they got etc. * For all the sorting/segregation types, list of students objects will be provided. * Create a reusable framework which can be used for age based sorting & future sorting requirements which may come.
Thanks for your kind help. I have done some research on both the suggested patterns & looks like Decorator pattern will fit in my requirements.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)