LogiQuest
Back to Properties and Indexers
6

What is the output of the following program?

var p = new Product { Price = 120 };
Console.WriteLine(p.Price);
class Product { public int Price { get; set; } }
Easy

Discussion (0)

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

Log in to join the discussion.