...

/

Distance Class with > and < Operators

Distance Class with > and < Operators

Learn to overload > and < operators in a Distance class.

Challenge

Write a program that implements a Distance class that records the distance in meter and centimeter. Overload the > and < operator in it to check whether one Distance object is smaller or greater than the ...