0
Simple method overriding programs
3 Answers
+ 1
here is an example that you may want to check to see difference or understand the meanings of overriding and overloading https://code.sololearn.com/c0awDMpDLukF/?ref=app
0
I'll give an example. In Java, programmer is forbidden from operator overriding. The language itself does not limit itself this way. Look at the +. It can operate on numbers as well as strings.
0
Venkatesh: your example is operator overloading.
overriding is when you have the same function name and inputs, but you write another function with the same parameters, but a different action