Question: its all the same question Ex 2. Student Class Data members: - student_name as string. - student no as int. - number_of_courses as integer which
Ex 2. Student Class Data members: - student_name as string. - student no as int. - number_of_courses as integer which is the number of courses for the student. - student_marks: StudentMarks array which contains all the student course information including marks, its size is the number_of_courses. Function member: - A parameterized constructor that receives: student name, student no, number_of_courses. you have to use this pointer. - Copy constructor. The copy must be a deep copy. - Destructor. - void addCourses (StudentMarks * c) which set the courses information using the received array c. - Void delete_all_courses0, that deallocate the old list and make its pointer point at the new list with the same size. - Void print details 0, that prints all details of a student including the courses and total marks using the function print inside the StudentMarks object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
