Due date: Jul 31, 11:59 PM Output from main function above: Name: David ID: 1212 Name: Sam Department: Math Name: Tom ID: 2345 Name: Jack Department: History Grading policy: output(); cout

Please slove it by C++. Please follow all the instructions.
Due date: Jul 31, 11:59 PM<br>Output from main function above:<br>Name: David<br>ID: 1212<br>Name: Sam<br>Department: Math<br>Name: Tom<br>ID: 2345<br>Name: Jack<br>Department: History<br>Grading policy:<br>

Extracted text: Due date: Jul 31, 11:59 PM Output from main function above: Name: David ID: 1212 Name: Sam Department: Math Name: Tom ID: 2345 Name: Jack Department: History Grading policy:
==> (Person) Destructor was called<br>6. Copy the previous program to a new file, then implement the following:<br>a. Implement a child class Instructor that inherits from Person.<br>b. Data member in Instructor class department<br>c. Override output function.<br>d. Change Person class to abstract class.<br>Use following main() to test your class.<br>int main() {<br>cout << endl;<br>Person **a = new Person*[4];<br>a[0] = new Student(output(); cout< end%;="" return="" 0;="" dii="" dd="" f11="" f10="" f9="" f8="" f7="" "/="">
Extracted text: ==> (Person) Destructor was called 6. Copy the previous program to a new file, then implement the following: a. Implement a child class Instructor that inherits from Person. b. Data member in Instructor class department c. Override output function. d. Change Person class to abstract class. Use following main() to test your class. int main() { cout < endl;="" person="" **a="new" person*[4];="" a[0]="new" student("david",="" 1212);="" a[1]="new" instructor("sam","math");="" a[2]="new" student("tom",2345);="" a[3]="new" instructor("jack","history");="" for(int="" i="0;"><4; i++)="" {="" a[i)-="">output(); cout< end%;="" return="" 0;="" dii="" dd="" f11="" f10="" f9="" f8="">

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here