Solve: Overloaded Area
Created By: Geoffrey Challen
/ Version: 2020.9.0
Write two versions of a function called area
.
The first should take two Int
arguments and return their product (as an Int
).
The second should take two Double
arguments and return their product (as a Double
).
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.