Sobes.tech
Junior — Senior

Creating a class with deep copy support

livecode

Task condition

It is necessary to write a class that has a user-defined copy constructor and assignment operator, correctly working with fields allocated in dynamic memory.

class CustomClass {
    // fields with dynamic memory
    // implement deep copying
};