2079 3

CSC166 ยท 2079 ยท 10 marks

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]

Object Oriented ProgrammingChapter 4: Operator OverloadingFundamental of operator overloading

"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 +, -, ==, ,...