Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C++ Reinforce and practice the concepts of operator overloading Modify the activity referring to the overload of operators that perform the addition of two
In C++
Reinforce and practice the concepts of operator overloading Modify the activity referring to the overload of operators that perform the addition of two points or coordinates. Within the class, it overloads the operator "==" (comparison) so that when sending two objects of that class it determines that they are equal only if the x 's are equal in each of the objects AND the y 's are equal in each of the objects, objects. You don't need to use the this pointer Note: For the overload define the operator of the boolean type (not Components as was done with the "+" operator) bool operator ==( Components ps ){ ps1x=10;ps1,y=20; p52x=10;p52y=20 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started