Question: what is the difference between method overloading and operator overloading?
Answer: Function overloading is a component of polymorphism in C++. function overloading means same method name but different parameter where as operator overloading is same named function with operator keyword in front of the symbol. And you can compare the object with other thing.