Alex Rivera | Logout

The copy constructor and assignment operator

Asked 2011-03-20T11:41:40.793
68

If I override operator= will the copy constructor automatically use the new operator? Similarly, if I define a copy constructor, will operator= automatically 'inherit' the behavior from the copy constructor?

Edit
Report

1 Answer

0

No, they are not the same operator.

answered 2011-03-20T11:43:21.500

Your Answer