Computer Science, asked by brainological, 1 year ago

Why is an object not passed to a constructor by value??? Explain​

Answers

Answered by charlie1505
5

Explanation:

an object of the class is returned by value by only using copy constructor.

If you use default or parameterized constructor then you can't pass the object by. it's possible by only using copy constructor

syntax of copy constructor-

ClassName (const ClassName &old_obj);

Similar questions