Question: Define a class named Doctor which has 4 Data members Doc Name: a string type patient _ Names: a string array with a unlimatied size,

Define a class named Doctor which has 4 Data members
Doc Name: a string type
patient_Names: a string array with a unlimatied size, use it to save patient names . "dynamic array"
patient num: an integer type. represent the number of patient currently.
salary: a double data type and methods:
a method that displays an object's information. void printInfo();
a method to add patient' names. void addpatient_names(string_patientname);
 Define a class named Doctor which has 4 Data members Doc

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!