Hi friends. I need some suggestions, ideas about a design. My app. has a class Person, containing basic information. But, Person can role in many ways. A Person can be a teacher, a student and etc. Our idea is: There will be only one Person. so I think inheritance doesnt fit in this case, but composition can work. Having a class Teacher wich points to Person, a class Student wich point to Person, etc...
Or maybe, a Person could have a collection of Roles, and so, Teacher and Student inherited Role. What do you think? -- Paulo Quicoli Editor Técnico: .NET Magazine, ClubeDelphi Magazine; Editor: WebMobile Magazine www.devmedia.com.br www.nhibernatebrasil.net http://pauloquicoli.spaces.live.com twitter:@pauloquicoli -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
