C Sharp (C#) - Properties and Encapsulation
What will happen when you run this code?
public class Person {
public string Name { get; init; }
}
var p = new Person { Name = "Alice" };
p.Name = "Bob";
Console.WriteLine(p.Name);