// constructors public Mark() { point = default(int); markGround = default(MarkGround); pupil = default(Pupil); pupilID = default(int); teacher = default(Teacher); teacherID = default(int); }
public Mark(int point_, Pupil pupil_, Teacher teacher_, MarkGround markGround_) { if (point_ < 1 || point_ > 10) { throw new ArgumentOutOfRangeException("In Mark.Mark(int, Pupil, Teacher, MarkGround): the point is out of range."); } point = point_; pupil = pupil_; pupilID = pupil_.PupilID; teacher = teacher_; teacherID = teacher_.TeacherID; markGround = markGround_; }