LogiQuest
Back to Polymorphism
10

What is the output of the following program?

Console.WriteLine(Area(3) + " " + Area(2, 5));
static int Area(int s) => s * s;
static int Area(int l, int b) => l * b;
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.