โ Back to Classes
Question 51
Disable Copying
Disable Copying
Create a class DatabaseConnection and explicitly delete the copy constructor and copy assignment operator. Use: DatabaseConnection(const DatabaseConnection&) = delete; DatabaseConnection& operator=(const DatabaseConnection&) = delete; Do NOT write a main function.
Expected Output:
OK
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.