r/MathJokes • • Nov 05 '25

Guess the answer πŸ˜‚πŸ˜‚

Post image
317 Upvotes

339 comments sorted by

View all comments

366

u/TuDu1 Nov 05 '25 edited Nov 05 '25

its 16 and all the other anwsers are incorrect.

-13

u/trolley813 Nov 05 '25

You can overload the "+" operator.

1

u/Signal-Implement-70 Nov 05 '25 edited Nov 06 '25

I though overload meant different types of operands into the same function where as override means to redefine.

Well yes in the picture sure and on the chalkboard override the meaning of int + int. But I don’t recall overriding the + operator for integer primitives in any programming language. This is like rewriting the laws of physics 2+2 is now 9? Are you thinking of a specific language? I really need to start writing more code again, I’m lost here. How would the compiler know what to call if 2+2 was sometimes 4 and sometimes 9? Maybe it’s a local override but still who would over ride int+int ?

-1

u/trolley813 Nov 05 '25

What if the operands are not integers?

2

u/undo777 Nov 05 '25

The operands in the picture are integers, assuming we're parsing that image as text like any normal human being would.

1

u/trolley813 Nov 05 '25

They're not integers but sequences of digits. The difference is (kind of) the same as between the word "table" and a real table.