|
What's the deal with operator
overloading?
What are the benefits of operator
overloading?
What are some examples of operator
overloading?
Operator
overloading is the ability to tell the
compiler how to perform a certain operation
when its corresponding operator is used on
one or more variables.
You can redefine or overload the function of
most built-in operators in C++. These
operators can be overloaded globally or on a
class-by-class basis. Overloaded operators
are implemented as functions and can be
member functions or global functions.For
details on Overloading check this link
http://www.functionx.com/cpp/Lesson25.htm
|