Exemple #1
0
 // constructors
 public Mark()
 {
     point = default(int);
     markGround = default(MarkGround);
     pupil = default(Pupil);
     pupilID = default(int);
     teacher = default(Teacher);
     teacherID = default(int);
 }
Exemple #2
0
        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_;
        }