C Sharp (C#) - Classes and Objects
What will be the output of the following C# code?
class Person {
public string Name;
public Person(string name) {
Name = name;
}
}
var p = new Person("Anna");
Console.WriteLine(p.Name);