2079 3

Object Oriented Programming207910 marksFundamental of operator overloading

What is operator overloading? Why it is necessary to overload and operator? Write a program for overloading comparison operators.

What is operator overloading? Why it is necessary to overload and operator? Write a program for overloading comparison operators.[10]

"The method of making operators to work for user defined class and having the ability to provide operators with a special user defined meaning is known as operator overloading." In simple terms, operator overloading allows us to redefine the behavior of existing C++ operators (such as +, -, ==, ,...

Up nextDefine class and object with suitable examples. How members of class can be accessed?