C Sharp (C#) - Properties and Encapsulation
Find the error in this code:
class Product {
public int Quantity { get; set; }
}
var p = new Product();
p.Quantity = -5;
Console.WriteLine(p.Quantity);