LogiQuest
Back to Properties and Indexers
11

What is the output of the following program?

var u = new User { Name = "Ravi" };
Console.WriteLine(u.Name.Length);
class User { public string Name { get; init; } = ""; }
Easy

Discussion (0)

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

Log in to join the discussion.