Answer to Question #311143 in C++ for cake

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


1
Expert's answer
2022-03-14T08:38:56-0400

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!

Comments

No comments. Be the first!

Leave a comment