overloading, L-value and deference operators...
Well, this semester I entered in an AP computer science class (without previous knowledge of what I was getting myself into...) and some classmates and I have to explain to the class in simple, "English" terms about overloading, L-value and deference operators. We are suppose to give an oral presentation and include examples as well as the explination of each topic. If anyone knows anything explaining these subjects, can you let me know or if there are any sites you know of, please tell me asap!!!
P.S. I do not know THAT much about C++ and programming so please don't get too technical!!
Some Insight Into Overloading
Overloading as the name suggest is trying to provide multiple methods with a single interface .... oops sounds technical is it.... hmmm let me make it simpler....
int x = 10 + 10;
Here the "+" operator adds two integers and the resultant (which happens to be int) is stored in x
double y = 10 + 20.2;
Here the same "+" operator adds one integer and another double and the resultant(which happens to be double) is stored in y.
If you closely observe, its the same + operator which is used in both the cases, but it's behaviour is different for different kind of operands. So you could say that + operator is overloaded.. in the sence its got more than one kind of behaviour.
You can overload functions too... called function overloading