what he meant was
base* b = new child();
then push_back(b) into the vector.
however for dynamic polymorphism you should keep functions which need to be derived from base class as virtual, so that when you call them with the base class pointer it calls the correct child class function.
so basically you need to read about polymorphism and 'dynamic' polymorphism in particular.