10 2012 档案

摘要:误解 在本书的Chapter 2中,在GetType方法的描述中有这样一句话: "The GetType Method is nonvirtual,which prevents a class from overrding this method and lying about its type,violating type safety" 翻译过来就是:GetType方法是一个非虚方法,不能重写此方法所以也就不能伪装成另一个类而违反类型安全。 一直不明白这句话的意思,非虚化方不能被重写,那么new呢?它又是怎么回事?什么叫隐藏? 上面说道new只是隐藏了积累成员的实现,但 阅读全文
posted @ 2012-10-31 22:57 Justin Liu 阅读(181) 评论(0) 推荐(0)