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()
Examples:
Example 1Input:
5 7
Output:
Sum=12
Example 2
Input:
10 20
Sum=30
Test Cases
Test Results
Input
Expected Output