import SearchKeys.KeyedItem;

public class City extends KeyedItem<String> {
  // city's name will be designated as search key
  private String country;  // city's country
  private int    pop;      // city's population

  public City(String theCity, String theCountry, 
              int newPop) {
    super(theCity); // makes city name the search key
    country = theCountry;
    pop = newPop;
  }  // end constructor

  public String toString() {
    return getKey() + ", " + country + "  " + pop;
  }  // end toString

  // The methods getCountry, setCountry, getPopulation, 
  // and setPopulation appear here.
  // . . .

}  // end City
