Assume that the Point class is existing with the following snippet in the header file
Point.h:
class Point
{ Point(); Pont(int, int); int GetX();
int GetY();
void SetX(int);
void SetY(int);
};
If the objects of Point are created as Point oPointOne, oPointTwo(2,3); Which of the following statements are correct?
(i) The statement oPointOne.SetX(20); will compile and run successfully.
(ii) The statement oPointOne.SetX(20).SetY(30); will compile successfully but will give a run time error.