namespace StaticPolymorphism
public class TestOverloading
public void Add(string a1, string a2)
Console.WriteLine("Adding Two String: {0} + {1} = {2}", a1 , a2, a1 + a2);
public void Add(int a1, int a2)
Console.WriteLine("Adding Two Integer : {0} + {1} = {2}", a1, a2, a1 + a2);
public static void Main(string[] args)
TestOverloading obj = new TestOverloading();
obj.Add("Preved" , "Medved");