Question: class point public: // CONSTRUCTOR point (double initial-x = 0.0, double initial-y = 0.0); // MODIFICATION MEMBER FUNCTIONS /I CONSTANT MEMBER FUNCTIONS point operatort (double

class point public: // CONSTRUCTOR point (double initial-x = 0.0, double initial-y = 0.0); // MODIFICATION MEMBER FUNCTIONS /I CONSTANT MEMBER FUNCTIONS point operatort (double &in) const friend point operatort (double &lhs, point& rhs); private: double x; // x coordinate of this point double y; // y coordinate of this point 1i Which line is invalid? Explain why. 1. point myPointl, myPoint2; 2. double shift = 8.5; 3. myPoint1 = shift + myPoint2; 4. myPointl.operator+(shift); 5. myPointl - myPointl + shift; How would you fix the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
