1.The + symbol works with pairs of strings as well as pairs of integers. Using the same operator for values of different types is called operator overloading. Now, “overloading” may sound like a bad...


1.The + symbol works with pairs of strings as well as pairs of integers. Using the same operator for values of different types is called operator overloading. Now, “overloading” may sound like a bad thing, but actually it can be a good thing. Doesn’t it make sense that strings are joined using the plus sign? You immediately understand what it means. Implemented well, operator overloading can make for clearer and more elegant code.






May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here