0

I asked this question from my faculty she replied new operator takes more processing time then clone, Is it correct? And Clone vs copy constructor is not my question !.If it would be 'CLONE VS NEW OPERATOR', then it may be correct.

user2849331
  • 177
  • 1
  • 1
  • 7
  • `clone()` is slower than `new`, because it does more work for you. – SLaks Nov 09 '14 at 14:09
  • 1
    GOT MY ANSWER "new" creates an empty object. "Clone" creates an object and populates it with the data from the original object. @Oliver Charlesworth if you dont know the answer, so kind please let others try it. – user2849331 Nov 09 '14 at 15:27

0 Answers0