Can we perform operator overloading on objects of different classes in c++?

C++ opertor overloading

3/30/2019 7:38:51 AM

Muhammad Bilal

1 Answer

New Answer


You mean, you want to overload an existing operator of a class, to work with an object of some other defined class? Sure, why not. https://code.sololearn.com/cUSgxrabcB1z/?ref=app