LogiQuest
Back to Properties and Indexers
4

What is the output of the following program?

var t = new Temp(); t.F = 212; Console.WriteLine(t.F);
class Temp {
    private double c;
    public double F { get => c * 9 / 5 + 32; set => c = (value - 32) * 5 / 9; }
}
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.