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