The Student class contains an overloaded addition operator which allows a number of credits to be added to a Student’s totalCredits. The function header is Student Student::operator+(int newCredits). The = operator has not been overloaded. Which of the following is correct in a program that declares a Student object named aStudent?
a. aStudent = 3 + aStudent;
b. aStudent = aStudent + 3;
c. both of the above
d. none of the above
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.