0
Why it is said here that when passing an object to function it must be passes by reference ?
Before this in composition we passed object directly then why not at here ?
1 Answer
+ 2
It isn't necessary, you can pass it either by value or by reference