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.
Asked
Active
Viewed 55 times
0
-
`clone()` is slower than `new`, because it does more work for you. – SLaks Nov 09 '14 at 14:09
-
1GOT 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