Code:
class Program
{
interface math
{
void one();
void two();
}
class test : math
{
void math.one()
{
}
void math.two()
{
}
public void sort(math ob)
{
Console.WriteLine("enter number");
//calculation
}
}
static void Main(string[] args)
{
math ob = new test();
test ob1=new test();
ob1.sort(ob);
Console.ReadKey();
}
}