method for the classes and using pointers. (Note that there is no built-in clone() method) A C++ example of object cloning: Object originalObj; Object copyObj(originalObj); // creates a copy of originalObj named copyObj A C++ example of object cloning using pointers (to avoid slicing see ): Object* originalObj = new Object; Object* copyObj = nullptr; copyObj = new Object(*originalObj); // creates a copy of originalObj and assigns its address to copyObj References Object-oriented programming