beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Overloaded Add

Geoffrey Challen // 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).