示例#1
0
 public Student(int id, string firstName, string lastName, string slackHandle, Cohort cohort)
 {
     Exercises   = new List <Exercise>();
     FirstName   = firstName;
     LastName    = lastName;
     SlackHandle = slackHandle;
     Cohort      = cohort;
     Id          = id;
 }
示例#2
0
 // Constructor
 public Instructor(int id, string firstName, string lastName, string slackHandle, Cohort cohort, string specialty)
 {
     Id          = id;
     FirstName   = firstName;
     LastName    = lastName;
     SlackHandle = slackHandle;
     Specialty   = specialty;
     Cohort      = cohort;
 }