public static void Test() { Leader instructor = new Instructor("王辅导员"); Leader departmentHead = new DepartmentHead("李主任"); Leader president = new President("张校长"); instructor.Successor = departmentHead; departmentHead.Successor = president; LeaveNode day3 = new LeaveNode(3, "赵阳"); LeaveNode day7 = new LeaveNode(7, "王辉"); LeaveNode day20 = new LeaveNode(20, "张晓"); instructor.HandleRequest(day3); instructor.HandleRequest(day7); instructor.HandleRequest(day20); }