示例#1
0
        static void Main()
        {
            Student student = new Student();

            student.GetDept();
            student.DisplayStuInfo();
            Console.Read();
        }
        static void Main()
        {
            Student student = new Student("MIT", "Mech", "Jamuna");

            student.GetDept();
            student.DisplayStuInfo();
            GC.Collect();
            Console.Read();
        }
示例#3
0
        static void Main()
        {
            Student student = new Student("UPES", "Upstream", "Arul");

            student.Getdept();
            student.DisplayStuInfo();
            GC.Collect();
            Console.Read();
        }