You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Create a class called Point with following specifications:
Private Integer Data members: X and Y
Constructors: Default constructor and Parameterized constructor with two arguments
Public member functions: 1) readData() - to read values for X and Y from user
2) printData() - to print X and Y values 3) addData() - to sum up X and Y and display the sum
Objects: 1) Create Obj1 with no arguments, read values from user, print values and sum. 2) Create obj2 with arguments 35 and 70, print values and sum*/