public void markStudentPresent(Student student) { // save student present DateTime entryTime = DateTime.Now; presentStudents.Add(student,entryTime); }
static void Main(string[] args) { Student student = new Student(123); Instructor instructor = new Instructor(100); Course course = new Course(2070, "Data Structures and Algo", 3); CourseSection section = new CourseSection(1005, course, instructor); section.addStudent(student); // Class period ClassPeriod period = new ClassPeriod(1, section); period.markStudentPresent(student); period.printStatus(); Console.ReadLine(); }