+ 2
Const in Copy Constructor
What is the purpose of having const in copy constructor like Test(const Test& obj) What is the purpose of this const and what if i remove this const, will it work properly or not). What other reason of having const except accodently not been modify inside copy constructor function.
2 Respostas