using System;
public class Test {
private Test() { }
public static int n;
public static int addOne() {
return ++n;
}
}
class Program
{
static void Main() {
Test.n = 45;
Console.WriteLine(Test.n);
Test.addOne();
Console.WriteLine(Test.n);
}
}
/*
run:
45
46
*/