CityEntry
¥abstract class CityEntry {
¥  /** Returns the name for the entry */
¥  abstract String getName();
¥  /** Returns all of the information in the listing in String form*/
¥  /* String toString() */
¥}
¥
¥class BusinessEntry extends CityEntry {
¥  String name, address, phone, city, state; 
¥  BusinessEntry(String n, String a, String p, String c, String s) {
¥    this.name    = n;
¥    this.address = a;
¥    this.phone   = p;
¥    this.city    = c;
¥    this.state   = s;
¥  }
¥  String getName()    { return this.name; }
¥  public String toString() {
¥return "Business[" + this.name + "," + this.address + "," +
¥      this.phone + "," + this.city + "," + this.state + "]";
¥  }
¥}