LogiQuest
Back to Polymorphism
8

What is the output of the following program?

Console.WriteLine(Add(2, 3) + " " + Add("2", "3"));
static int Add(int a, int b) => a + b;
static string Add(string a, string b) => a + b;
Medium

Discussion (0)

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

Log in to join the discussion.