k i got it
now i am trying to call a virtual function in my header file:Code:arShape = &c1 . . .
CPP FILECode:void doNonVirtual() { cout << "- I am the doNonVirtual of the base class" << endl; }
but i am getting a syntax error when i call the virtual functionCode:for (int i=0;i < MAX ; i++) { cout << " Object is a " << arShape[i]->getName() << endl; cout << "calling doNonVirtual Function" << arShape[i].doNonVirtual(); } system("PAUSE"); }