If a subject have to contain 2 members: 1 teacher and many students, a definition of sample class could looks like:
public class Subject
{
private List<Student> stu = new List<Student>();
private Teacher tea = new Teacher();
public List<Student> Students
{
get {return stu;}
set {stu = value;}
}
public Teacher Teacher
{
get {return tea;}
set {tea = value;}
}
}
I'd suggest to read this article on MSDN:
Walkthrough: Creating Your Own Collection Class[
^]