+ 2
In the overload function, shouldn't the parameter be 'obj' instead of '&obj'??
4 odpowiedzi
+ 2
Its a parameter, it can be named anything
0
Thanks. I've away from c++ for years and try use this course to refresh my memory. Now back to the question, if there's a ampersand symbol before the name, in the code it should use obj->var instead of obj.var ? I guess &obj is a reference instead of pointer?