3 回答
TA贡献1784条经验 获得超2个赞
TA贡献1772条经验 获得超6个赞
namespace Demo{ class A { public A() { System.Console.WriteLine("This is a {0},", this.GetType()); } } class B : A { } // . . . B b = new B(); // Output: "This is a Demo.B"}
- 3 回答
- 0 关注
- 484 浏览
添加回答
举报
TA贡献1784条经验 获得超2个赞
TA贡献1772条经验 获得超6个赞
namespace Demo{ class A { public A() { System.Console.WriteLine("This is a {0},", this.GetType()); } } class B : A { } // . . . B b = new B(); // Output: "This is a Demo.B"}
举报