• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 1

Clone object class c++?

I have a class with two private elements, how can i create a method function clone() to clone the objects?

c++methodsfunctionsclassesobjects
2nd Dec 2019, 8:16 PM
Antonio
1 Odpowiedź
0
https://stackoverflow.com/questions/12902751/how-to-clone-object-in-c-or-is-there-another-solution
3rd Dec 2019, 4:27 AM
minirkk
minirkk - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
My codebits section is full of deleted codes
12 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
Feedback on my portfolio
0 Votes
I need a siren sound
0 Votes
Yo this is madness
0 Votes
best language if i want to learn about AI
0 Votes
Ai generated practices
0 Votes
How can i insert files?
1 Votes