How did you declare the virtual function in the base class? It sounds like you messed it up a little... (or forgot to give an implementation). If cPoly won't be instantiated (create objects of class ...
class B { public: void method(const char* i) {cout << i << endl;} }; Â Â class D : public B { public: void method(float f) {cout << f << endl;} }; Â Â int main ...