โ Back to Classes
Question 54
Copy Constructor Logs
Copy Constructor Logs
Create a class Logger with a copy constructor that prints "Copied". Add a constructor that accepts a string name and stores it. Do NOT write a main function.
Expected Output:
Copied Done
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.