C# Method Overloading
using System;
namespace ConsoleApplicationSample
{
class ArrayBCA
{
#region Method Overloading
public class Cal
{
public static int add(int a, int b)
{
return a + b;
}
public static int add(int a, int b, int c)
{
return a + b + c;
}
}
public static void Main()
{
Console.WriteLine(Cal.add(12,
23));
Console.WriteLine(Cal.add(12,
23, 25));
Console.ReadKey();
}
#endregion
}
}
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
0 comments
Post a Comment