View Single Post
Old 01-03-2013, 05:54 PM   PM User | #1
Dev Hawk
New to the CF scene

 
Join Date: Dec 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Dev Hawk is an unknown quantity at this point
Anyone to explain this?

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
Quote:
fun1
123
fun2
Dev Hawk is offline   Reply With Quote