public Person(string name)
public override string ToString()
string message = "You entered the names: ";
public static void Main(string [] args)
Person[] people = new Person[3];
Console.WriteLine("PLEASE INPUT THREE NAMES");
Console.WriteLine("Input first name: ");
Person name1 = new Person(Console.ReadLine());
Console.WriteLine("Input second name: ");
Person name2 = new Person(Console.ReadLine());
Console.WriteLine("Input last name: ");
Person name3 = new Person(Console.ReadLine());
Console.WriteLine(name1.ToString());
foreach(Person n in people)
Console.WriteLine(n.Name);