Skip to main content

Posts

Showing posts from July, 2021

What is Operator Overloading?

  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 : Overloa...