Three Letters - H O T
The instructor is talking about overloading operators - on the way here it was overly hot and I'm still cooling off in the air-conditioned room.
Being hot makes it hard to concentrate!
Atleast I was able to avoid that military person with the gun - I got someone else while he was busy inspecting another car that was pulled over (never a good sign).
Here :) have some notes:
istream &operator>>(istream &input, PhoneNumber &num)
{
}
The 'this' pointer is always passed in my every method to the compiler - it has the value of the left hand operator - the calling operator.
Overloading a operand allows you to use operands with objects which you wouldn't otherwise be able to use (you'd have to create functions to do the same thing) - this ends up being a cleaner way of programming.
0 Comments:
Post a Comment
<< Home