Question: Dr Objectives: Advancing our understanding of vectors. Using a vector to store class object pointers. Implementing a vector of pointers to achieve polymorphism. Question: Download

 Dr Objectives: Advancing our understanding of vectors. Using a vector to
store class object pointers. Implementing a vector of pointers to achieve polymorphism.

Dr Objectives: Advancing our understanding of vectors. Using a vector to store class object pointers. Implementing a vector of pointers to achieve polymorphism. Question: Download Lab21_Given.epp. A base class, two derived classes, and a main function is provided. 1. Read and understand the given code. 2. Implement the following functions as described in each TOD0 task: a, void addDoctor(vector?personType., &vec) b. void addLawyer(vector &vec, vectorxpersonType >::iterator &it) d. void clearVec(vector &vec, vectorxpersonType >::iterator &it) d. void clearVec(vector

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!