Lecture overview -- Keyboard shortcut: 'u'  Previous page: Example of copying objects: Programmed copying -- Keyboard shortcut: 'p'  Next page: Classes and Conversion -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Alphabetic index  Help page about these notes  Course home    Abstraction Mechanisms, Part 1 - slide 17 : 36

Preventing object copying

If you do not define a copy constructor and an assignment operator yourself, the compiler provides them for you

This is not convenient if you explicitly want to prevent object copying

Compiler enforced prevention

This is a trick!