摘要: 多态1什么是多态?1.1概念多态的概念众说纷纭,下面是几种代表性的说法:“This ability to manipulate more than one type with a pointer or a reference to a base classis spoken of as polymorphism” (《C++ Primer》第838页)。即用基类的指针/引用来操作多种类(基类和其派生类)的对象的能力称之为多态。它是从语言实现的角度来考虑的。“polymorphism provides another dimension of separation of interface fr 阅读全文
posted @ 2011-07-27 18:20 Sam.山子 阅读(669) 评论(0) 推荐(0) 编辑