If (a ="120", b= "100" )are objects of class [STRING] and [ STRING c = a + b ] . How to make [operator +] to calculate c = 220? | Sololearn: Learn to code for FREE!

0

If (a ="120", b= "100" )are objects of class [STRING] and [ STRING c = a + b ] . How to make [operator +] to calculate c = 220?

11/30/2021 1:30:59 AM

Morsal

1 Answer

New Answer

+3

Your question is incomplete. Edit your question to convey enough information about your query I've created an example code to demonstrate operator overloading just in case you needed it https://code.sololearn.com/cPY4EMcVMC38/?ref=app