New
student *pst &stu;
int[] myArray = new int[10];
int[] myArray1 = { 1, 3, 4, 5 };
//为匿名类型创造对象
// Form myForm = new Form() { testc = 'je'};
//声明隐式类型的变量——var自动推断类型,new后面不一定要接类型,体现了var的强大功能
var person = new { Name = "Mr.okay", Age = 34 };
Console.WriteLine(person.GetType().Name);//<>f__AnonymousType0`2
Console.WriteLine(person.Name);
Console.WriteLine(person.Age );
//依赖注入,削弱紧耦合,new不能随便用
//左移乘2>>