namespace Cities_and_Villages
private set { name = value; }
private DateTime foundationDate
set { foundationDate = value; }
get { return foundationDate; }
public static int GetAge(DateTime foundationDate)
return foundationDate.Year - DateTime.Now.Year;
int population { get; set; }
public interface IVillage
class City : Toponym, IToponym, ICity
City city = new City(string name, DateTime foundationDate)
this.foundationDate = foundationDate;
class Village : Toponym, IToponym, IVillage
static void Main(string[] args)