C Sharp (C#) - Properties and Encapsulation
What will be the output of this C# code?
class Box {
private int size = 5;
public int GetSize() { return size; }
}
class Program {
static void Main() {
Box b = new Box();
Console.WriteLine(b.GetSize());
}
}