C Sharp (C#) - Properties and Encapsulation
What is the output of this code?
class Box {
public int Width { get; set; } = 3;
public int Height { get; set; } = 4;
public int Area => Width * Height;
}
var box = new Box();
Console.WriteLine(box.Area);