예제 #1
0
        private static void Main(string[] args)
        {
            Student s3 = new Student("王五", null);

            Student s1 = new Student("张三", s3);
            Student s2 = new Student("李四", s1);

            Book b1 = new Book("赵六");
            s2.CheckBook(b1);

            Console.ReadLine();
        }
예제 #2
0
 public Student(string name, Student nextStudent)
 {
     _name = name;
     _nextStudent = nextStudent;
 }