I was just reading through C++ Annotations and I am at the point where the author is starting with classes. I noticed that the author declares one of the member functions
and I was wondering what would be the ultimate difference ifCode:std::string const &name() const;
was used instead. The function just returns the name but I am curious as to what this would mean with a more complex function.Code:std::string const name() const;
Thanks in advance,
M