Could someone please help me understand some code. My teacher went over it last week, but I am lost on it still. Here is the code:
BigNum BigNum::operato r+(const BigNum &b) {
return this->plus(b);
}
I would like two things explained to me about this code. First, what is an operator overloader used for? Then, what is 'this->' for in the code above.
Thanks - CTYD
BigNum BigNum::operato r+(const BigNum &b) {
return this->plus(b);
}
I would like two things explained to me about this code. First, what is an operator overloader used for? Then, what is 'this->' for in the code above.
Thanks - CTYD
Comment