Question #311143

Which parameter should be removed from this line, that strives to overload the * operator? Type the parameter name only; don't list the type.

TimeHrMn TimeHrMn::operator*(TimeHrMn lhs, TimeHrMn rhs) {


Expert's answer

The first parameter (lhs) should be removed. The left-hand operator is referenced as the called object.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS