Question: Answer in C++ (The Course class) Revise the Course class implementation in Listing 11.16, Course.cpp, as follows: When adding a new student to the course,
Answer in C++

(The Course class) Revise the Course class implementation in Listing 11.16, Course.cpp, as follows: When adding a new student to the course, if the array capacity is exceeded, increase the array size by creating a new larger array and copying the contents of the current array to it. Implement the drops tudent function. Add a new function named cha Othat removes all students from the course Implement the destructor and copy constructorio perform a deep copy n the class. Write a test program that creates a course, adds three students, removes one, and displays the students in the course. (The Course class) Revise the Course class implementation in Listing 11.16, Course.cpp, as follows: When adding a new student to the course, if the array capacity is exceeded, increase the array size by creating a new larger array and copying the contents of the current array to it. Implement the drops tudent function. Add a new function named cha Othat removes all students from the course Implement the destructor and copy constructorio perform a deep copy n the class. Write a test program that creates a course, adds three students, removes one, and displays the students in the course
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
