CJCoding With Joseph
15per day

Copy Constructor - Point

Create a class Point with private int x and y. Implement a copy constructor and a toString() method that returns "(x, y)".

Do NOT write a main function.

Expected Output:

(2, 5)
Topics:
Classes
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.