MentorGraph interview question

Copy constructor and why we pass arguments by reference only.

Interview Answer

Anonymous

Nov 13, 2021

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