protected string ssn = "111-222-333";
protected string name = "John Wick";
public virtual void GetInfo()
Console.WriteLine("Name: {0}", name);
Console.WriteLine("SSN: {0}", ssn);
public class Employee : Person
public string id = "ABC123";
public override void GetInfo()
Console.WriteLine("Employee ID: {0}", id);
public static void Main()
Employee E = new Employee();