OPERATOR OVERLOADING : The mechanism of giving such special meaning to an operator is known as operator overloading. Operator overloading provides flexible options for the creation of new definitions for most of the c++ operators accept the following: 1] class member access operator(.) 2] scope resolution operator(::) 3] size of operator(size of) 4] condition operator or ternary operator(?:) Operator overloading is used to redefine the operators available in C++. It is used to perform operation on the user-defined data type. Example for operator overloading : Overload an operator '+' in a class like string to concatenate two strings using +. Advantages of operator overloading : Enables programmers to use notation closer to target domin. Provides similar syntactic support to user-defined types. It makes the program easier to understand. Rules for operator overloading : Cannot overload overloa
I have shared regarding all Html, java, PHP, c++, etc programming slips. These slips are useful for students. Hope it will help you.