C Sharp (C#) - Properties and Encapsulation
What will be the output of this C# code?
class Sample {
public int Number;
public int NumberProp { get; set; }
}
var s = new Sample();
s.Number = 5;
s.NumberProp = 10;
Console.WriteLine(s.Number + "," + s.NumberProp);