81.3k views
0 votes
Create a class called Student. Each student should have a name and ID number (an int). They should also have a ptr to a dynamic array called Grades. The public methods for Student should be: getName, setName, getID, setID, setGrades, getGrades. In the constructor you should initialize Grades to be an array of size 4 with the values 0 for each position. Make sure that you use THIS properly. Create 2 students, assign one object to another and show that when you assign grades to one it effects the other equally. in c++

User Nasr
by
8.3k points

1 Answer

6 votes

Answer:

I don't understandoeuehheieu38

User Soteria
by
7.8k points