MentorGraph interview question

Copy constructor and why we pass arguments by reference only.

Interview Answer

Anonymous

13 Nov 2021

To avoid the recursive calling of copy constructor we call I object as an argument through reference.