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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here