I hava a base class and a derived class as below:
class derived::public base
Now i have created a vector pointer for base class
And an instance for derived class as well
derived* pDerived = new derived();
My query is :
is it possible to add the derived class object pointer in to the base class vector
Kindly explain me on this.