11
What is the output of the following program?
var a = new Acc();
a.Balance = -50;
Console.WriteLine(a.Balance);
class Acc
{
private int bal;
public int Balance { get => bal; set { if (value >= 0) bal = value; } }
}DiscussMedium