2011年11月9日

转型问题

摘要: 错误的写法:class Program { static void Main(string[] args) { Employee e = new Employee(); Manager m = (Manager)e; } } class Employee { } class Manager : Employee { }正确写法:class Program { static void Main(string... 阅读全文

posted @ 2011-11-09 23:08 CodeSummer 阅读(129) 评论(0) 推荐(0) 编辑

导航