Circle c; c = new Circle(42); Circle refc; refc = c; //c与refc指向同一地址正确的复制类的方法(包括复制私有数据):class Circle { &nbs…
创建构造器的一个例子:class Circle { private int radius; public Circle() //默认构造器 &…
基本语法:try { ... } catch(Exception ex) when (ex.GetTypr() != typeof(System.OutOfMenoryException)) { ....…