You explained it pretty clearly, since it's returning itself by returning this it's returning a reference basically. What I'm wondering is in what operator overloading situations would you use * vs...
Type: Posts; User: t88spra
You explained it pretty clearly, since it's returning itself by returning this it's returning a reference basically. What I'm wondering is in what operator overloading situations would you use * vs...
Why does this return a reference to an employee class
Employee & Employee::operator= (const Employee & rhs)
{
if (this == &rhs)
return *this;
itsFirstName =...
I guess so ... I didn't even realze that was a function returning a pointer ... it's so much clearer now ... thank you
Actually inheretence and polymorphism are why I ask. They were both in this "week" and I'm reading the review for the week and this code is what is throwing me off.
class PartsList
{...
What are the advantages of having pointers to functions again ... and what kind of set up do they need?
I just came to realize I don't know why I'm doing this ... I went back and looked in my book, it's likely I overlooked it, but what I've managed to gleen is that it's for clarity?
I would just like to apologize for just storming onto your board and asking a question w/o searching. I always rag on people on other boards for not searching questions that are answered 50 times. ...
That actually cleared things up nicely, i wasn't sure if the word operator was something that was used in the book as a variable name that was supposed to be clear or if the actual word operator was...
My book doesn't have the best explanation in the world and I would appreciate it if someone would break this down with as much detail as they can stand, but to give the lazy ones ;) some general...