// https://stackoverflow.com/questions/1310223/what-does-this-mean-public-name-get-set // Article I read which introduced me to automatic properties // using System; namespace CSC330_CSharp_Midterm { public abstract class Person { // will use automatic properties /* private string name; private DateTime dob; private string address; private double cost; */ public Person() { } public string Name { get; set; } public DateTime DOB { get; set; } public string Address { get; set; } public double Cost { get; set; } public abstract override string ToString(); public virtual string ShowCost(object obj) { return (obj as Person).Cost.ToString(); } } }