• name – A string that stores the name of the doctor
• numPatients – An integer that tracks how many patients the doctor must treat
• patientList – A dynamic array of strings used to store the patient names
Write appropriate constructor(s), mutator, and accessor methods for the Doctorclassalong withthefollowing:
• A method that inputs all values from the user, including the list of patient names. Note that this method has to support input for an arbitrary number of patient.
• A method that outputs the names in the list of all patients.
• A method that resets the number of patient to 0 and the patientList to an empty list.
• An overloaded assignment operator that correctly …show more content…
Note that this method has to support input for an arbitrary number of patients and surgeries.
A method that outputs the names in the list of all patients and surgeries scheduled.
A method that resets the number of patient to 0 and the patientList to an empty list.
A method that resets the number of surgery scheduled to 0 and the surgerySchedule to an empty list.
An overloaded assignment operator that correctly makes a new copy of a HeartSurgeon object with the list of patients and the list of surgeries scheduled.
A destructor that releases all memory that has been allocated.
Write a main method that tests (i.e., unit testing) all of your functions in both the Doctor and HeartSurgeonclasses. Requirements:
1. Use comments to provide a heading at the top of your code containing your name, Auburn Userid, filename, and how to compile your code. Also describe any help or sources that you used (as per the syllabus).
2. Your source code file should be named as “_hw2.cpp”.
3. Your program must use dynamic arrays
4. Your program must use