copy constructor

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In C++ we have a copy constructor. What is the equivalent in .Net? Would that
be the clone method?
 
In C++ we have a copy constructor. What is the equivalent in .Net? Would that
be the clone method?

That is a frequently used convention for some classes. Other classes have
an actual copy constructor. But it is up to each class to implement it
itself; there's no language mechanism for a magic bitwise copy of any
object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top