• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
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 Answer
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

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Guys I don't know anything about cooding who can help me pls
1 Votes
Decorators in python.
2 Votes
Coding for Cybersecurity
1 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Salut tout le monde
1 Votes
Please click me
0 Votes
Hello !
0 Votes
Can sololearn have multiple inpus&outputs?
3 Votes