• 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
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
GitHub account connecting issue
3 Votes
photo upload issue in html code
0 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
Algorithm to create maze-like grid
2 Votes
Loops and conditions
0 Votes
Coding issue
2 Votes
Alguém Português por aqui?
0 Votes
Hardware of computer
3 Votes