Question: Computing III Lab-6 This is a modification of a previous lab exercise done by you but in this we wll review the working of constructor,
Computing III Lab-6 This is a modification of a previous lab exercise done by you but in this we wll review the working of constructor, copy constructor, copy assignment operator and destructor. There is a collection of student records to be maintained for an examination- including the variables studentID, studentFirstName and studentGrade (integer). The program should prompt for, input the data and keep records in dynamic array. Initialize the default studentFirstName as XXXX and the default grade as 0. Implement your own constructor, copy constructor, copy assignment operator and destructor. Consider the passing grade as 8 (out of 10). Create a second array of passed students and a third array which just copies this array Print the output of the test run given below. Additionally display when were the following called (a) constructor (b) copy constructor (c) copy assignment operator (d) destructor-and explain it to your instructor (you could uncomment the code for this display and show in the next run with fewer data input). Test run. How many records? 3 Enter student record (studentID
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
