C Sharp (C#) - Classes and Objects
What will be the output of the following code?
class Test {
private int x = 5;
public int GetX() { return x; }
}
class Program {
static void Main() {
Test t = new Test();
Console.WriteLine(t.GetX());
}
}