I didn't understand how does it work.
class Sample
{
public static void fun1()
{
Console.WriteLine("fun1");
}
public void fun2()
{
Console.WriteLine("fun2");
}
public void fun2(int i)
{
Console.WriteLine(i); fun2();
}
class MyProgram
{
static void Main(string[] args)
{
Sample s = new Sample();
Sample.fun1();
s.fun2(123);
}
}
}
}
Output