Hi
I develop a programm where the user is able to build a sql query. A query can consist of several selections. A Selection consists of several conditions.
Now I want to develop copy and paste function. The user should be able to copy and paste a selection.

Now my question:
whats the common way to copy an object (in my case i want to copy the conditions).
the copied objects should be on a different place on the heap.

Should I implement a copy-method? Or a copyclass which creates new Objects?

thank u for help