+ 2

Do we need to always pass an object to a function by reference?

In the composition part 2 we pass the object birthday to the constructor as it is(not by reference) but in keyword friend topic we pass the object by reference and it's written in Note that we should pass the object by reference can we pass it only by reference or directly or do we have to do it for non-member functions only which we define as object.

18th Dec 2016, 8:17 AM
Abhishek Sharma
Abhishek Sharma - avatar
1 Respuesta
0
Hey Abhishek , if you post question with code then that would be good to analyse ..
18th Dec 2016, 8:42 AM
Mock
Mock - avatar