what is operator overloading? what are the benefits of operator overloading?
(adsbygoogle = window.adsbygoogle || []).push({});
Operator overloading in C++ is a feature that allows operator such as "+" or "-" to be redefined to work with user-defined datatypes, such as classes. In other words, it allows you to change the way that an operator works when applied to instances of a class.The benefits of operator overloading are as follows:1. Improved readability:...
Showing posts with label operator overloading. operator overloading benefits. Show all posts
Showing posts with label operator overloading. operator overloading benefits. Show all posts