类的构造
-
C#基础知识整理:基础知识(3) 类的构造
我们定义了yschool,yteacher类,实例化对象时: YSchool shool1 = new YSchool(); shool1.ID = 1; shool1.Name = “清华附中”; YSchool school2 = new YSchool(); school2.ID = 2; s…
我们定义了yschool,yteacher类,实例化对象时: YSchool shool1 = new YSchool(); shool1.ID = 1; shool1.Name = “清华附中”; YSchool school2 = new YSchool(); school2.ID = 2; s…