Exemple #1
0
 //Main_7_7_2
 public static void Main_7_7_2()
 {
     Student s1 = new Student("Wang", 22);
     Student s3 = (Student)s1.Clone();
     s3.ShowInfo();
     s3.Name = "Hao";
     s3.Age = 27;
     s3.ShowInfo();
     s1.ShowInfo();
 }
Exemple #2
0
        //Main_7_7_1
        public static void Main()
        {
            //�������͵�dz����
            Student s1 = new Student("Wang", 22);
            //ִ��dz������
            Student s2 = s1;
            s2.Age = 27;
            s1.ShowInfo();

            //ֵ���͵����
            //Int32 i = 100;
            //Int32 j = i;
            //j = 200;
            //Console.WriteLine(i);
        }