Write a program to add co-ordinates of the plane
The class having x and y co-ordinates. Create three objects.
Use a constructor to pass one pair of co-ordinates and a function to accept the second pair.
Add these variables of two objects and keeps the result in the third.