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 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



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here