摘要: 若一个实例方法的声明中含有 virtual 修饰符,则称该方法为虚方法 (virtual method)。若其中没有 virtual 修饰符,则称该方法为非虚方法 (non-virtual method)。在调用一个虚方法时,该调用所涉及的那个实例的运行时类型 (runtime type) 确定要调用该方法的哪一个实现。在非虚方法调用中,实例的编译时类型 (compile-time type) 负... 阅读全文
posted @ 2009-05-09 12:40 Sangplus 阅读(1141) 评论(1) 推荐(0) 编辑