Kotlinlearncs.online LogoJava
Return to List

Solve: Overloaded Add

Created By: Geoffrey Challen
/ Version: 2021.2.0

Let's practice with function overloading. Write two versions of a function called add. The first should take two Double arguments and return their sum (as a Double). The second should take three Int arguments and return their sum (as an Int).

Related Lessons

Stuck? You may find these lessons helpful: