Task 2 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

3.5 Methods — overload sum

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

A two-parameter sum is already written above. Add an overload: the same name, but taking three numbers, returning their total.

The program prints 3 and then 6 — Java picks the version by the number of arguments.

Your solution