How to overload the greater than operator for box class? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to overload the greater than operator for box class?

The thing is Public static____operator___(Box a, Box b){ ..... ... .

14th Dec 2018, 8:54 PM
Rifkin Rollins
Rifkin Rollins - avatar
1 Answer
+ 2
Depends on which language, I have a full set of examples available for SoloLearn languages that support it. But, I'm going to assume C++. The others are linked in the comments of this. https://code.sololearn.com/cStdw0OPtPxG
14th Dec 2018, 10:56 PM
John Wells
John Wells - avatar