Create two classes: Point and Distance.
Point
Distance
sumValues(const Point&, const Distance&)
This function should add the private integers from both objects and print the result in the format:
Sum=<value>
In main():
main()
sumValues()
Example Input:
5 7
Output:
Sum=12
Input:
10 20
Sum=30
Test Cases
Test Results
Input
Expected Output