/** Grandmother is a Mother with a (possibly empty) list of granddaughters
 */
public class Grandmother extends Mother {
  // a (possibly empty) list of granddaughters
  private String grandDaughterList= "";

  /** constructor: create a Grandmother with name n,
   *  daughterList dL, and grandDaughterList gDL
   */
  public Grandmother(String n, String dL, String gDL) {
    super(n, dL);
    grandDaughterList= gDL;
  }

  /** toString(): represent this Grandmother, her daughters and
   *  granddaughters as a String.
   */
  public String toString() {
    String result= super.toString();
    result += "\nGrandchildren: " + grandDaughterList;
    return result;
  }

  /** m3: print some information.
   */
  public void m3() {
    super.m2();
  }

  /** m2: print some information.
   */
  public void m2() {
    System.out.println(super.toString());
    System.out.println();
  }
}

