using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Generics
{
public class TestOverloading
{
public void Tover(string a, int b)
{
}
public void Tover(int a, string b)
{
}
static void Main(string[] args)
{
TestOverloading tx = new TestOverloading();
}
}
}
I have 2 methods with the same name,
Tover(string a, int b) and another method Tover(int a, string b). Are these methods doing method overloading or not ?
VulpesPosted May 20, 2014, 11:33 AM
Although the method names are the same and each has two parameters, the types of the parameters differ i.e. 'string and int' as opposed to 'int and string'.