Question: Dev C++ Question 1 Consider the two classes, Student and Lecturer defined in Program C-1. 1 // Program C-1 3 #include 4 using namespace std;
Question 1 Consider the two classes, Student and Lecturer defined in Program C-1. 1 // Program C-1 3 #include 4 using namespace std; 5 6 alass Student private: 8 string name; 9 string matric; 10 string program; 11 string email: 12 string phone; 13 public: 14 Student (string n, string m, string P, string e, string ph) 15 namen 16 matric 17 programpi 18 emaile; phone - ph; 20 21 string getName() const return name Vaid setName (string value name value: string getMatric consteturn mateien void setMatridatring value matre Value stiges Program constern program Netdating value program valde 30 KOSU Mixing 57 33 34 BS 86 NO HH 712 3B 40 alass Leaturer 41 private: 42 string name: 43 string staffid; string faculty; 45 string email; 46 string phone; 47 48 publie: 49 Lecturer (string n, string id, string , stringe, string ph) { 51 nameni 52 staffid id; 53 faculty - ; 54 email -e: 55 phone ph; 56 50 57 string getName() const {return name! void setName (string value) { name - value; } 58 59 60 61 62 63 60 65 66 67 58 69 70 71 22 string getStaftId() const return stald:) void setStatId(string value) { startId - value; ) string get Faculty) const { return faculty: 1 void set Faculty (string value) { faculty value; } string getEna 114) const { return email: void setEna 1 (string value) { email - value; } string get Phone (const return email: void set Phone string value phone value: 737) 4. Identify and justify ONE (1) issue about the implementation of the classes in the program 15 marks) b. Provide two solutions to fix the issue in (a) using two different approaches below. Give your answers by rewriting the onginal code. You may add additional classes whenever necessary using inheritance and comparation in using inheritance (without composition) (10 marks Question 1 Consider the two classes, Student and Lecturer defined in Program C-1. 1 // Program C-1 3 #include 4 using namespace std; 5 6 alass Student private: 8 string name; 9 string matric; 10 string program; 11 string email: 12 string phone; 13 public: 14 Student (string n, string m, string P, string e, string ph) 15 namen 16 matric 17 programpi 18 emaile; phone - ph; 20 21 string getName() const return name Vaid setName (string value name value: string getMatric consteturn mateien void setMatridatring value matre Value stiges Program constern program Netdating value program valde 30 KOSU Mixing 57 33 34 BS 86 NO HH 712 3B 40 alass Leaturer 41 private: 42 string name: 43 string staffid; string faculty; 45 string email; 46 string phone; 47 48 publie: 49 Lecturer (string n, string id, string , stringe, string ph) { 51 nameni 52 staffid id; 53 faculty - ; 54 email -e: 55 phone ph; 56 50 57 string getName() const {return name! void setName (string value) { name - value; } 58 59 60 61 62 63 60 65 66 67 58 69 70 71 22 string getStaftId() const return stald:) void setStatId(string value) { startId - value; ) string get Faculty) const { return faculty: 1 void set Faculty (string value) { faculty value; } string getEna 114) const { return email: void setEna 1 (string value) { email - value; } string get Phone (const return email: void set Phone string value phone value: 737) 4. Identify and justify ONE (1) issue about the implementation of the classes in the program 15 marks) b. Provide two solutions to fix the issue in (a) using two different approaches below. Give your answers by rewriting the onginal code. You may add additional classes whenever necessary using inheritance and comparation in using inheritance (without composition) (10 marks