Can some one tell me how can i map aggregation and composition in c#,considering the two classes STUDENT and LECTURER.
my question may be unclear.As an example,I used VS class designer to generate the Association relationship between classes.consider the 2 classes LECTURER and STUDENT_SOCIETY.Class Designer generates the following code. Blockquote
public class Lecturer
{
private string Name;
private string Specialization;
public StudentSociety StudentSociety
{
get
{
}
set
{
}
}
}
public class StudentSociety
{
private int Name;
private string NoOfMembers;
}
So same way how can i model the aggregation and composition