Saved Bookmarks
| 1. |
Assigning objects takes place while passing the arguments.(a) True(b) FalseThis question was posed to me during an interview.Asked question is from Assigning Objects topic in division Assigning Object, Pointer to Objects, Passing and Returning Object of Object Oriented Programming |
|
Answer» CORRECT answer is (b) False Explanation: The actual assignment doesn’t take place as the OBJECT might have got passed by REFERENCE. Also even if not by reference, the COPY CONSTRUCTOR is called to copy the values into the new object and not exactly the assignment operator. |
|