using System;
namespace ConsoleApplication_C_Sharp
{
class Test
{
public Test()
{
Method();
}
int n;
public void Method()
{
n++;
Console.WriteLine("Method : " + n);
}
}
class Program
{
static void Main(string[] args)
{
Test t = new Test();
t.Method();
}
}
}
/*
run:
Method : 1
Method : 2
*/