public ClassRoom(Pupil newPupil_1, Pupil newPupil_2) { pupils = new List <Pupil>(); pupils.Add(newPupil_1); pupils.Add(newPupil_2); }
public void inputData(Pupil pupil) { pupils.Add(pupil); }