Im having some problem understanding operator overloading.
I need to overload == to compare if two points have the same coordinates.
Two objects Point1 and Point2 and they have both got two coordinates(X and Y).
I would be really glad if someone could explain two me what I have to do and why.
I need to overload == to compare if two points have the same coordinates.
Two objects Point1 and Point2 and they have both got two coordinates(X and Y).
I would be really glad if someone could explain two me what I have to do and why.