@@ -0,0 +1,1472 @@
+//: initialization/Overloading.java%0A// Demonstration of both constructor%0A// and ordinary method overloading.%0Aimport static net.mindview.util.Print.*;%0A%0A/**%0A * A class comment for Tree%0A */%0Aclass Tree %7B%0A  int height;%0A  Tree() %7B%0A    print(%22Planting a seedling%22);%0A    height = 0;%0A  %7D%0A  Tree(int initialHeight) %7B%0A    height = initialHeight;%0A    print(%22Creating new Tree that is %22 +%0A      height + %22 feet tall%22);%0A  %7D%0A%0A  /**%0A   * A method comment for info()%0A   */%0A  void info() %7B%0A    print(%22Tree is %22 + height + %22 feet tall%22);%0A  %7D%0A%0A  /**%0A   * A method comment for overloaded info()%0A   */%0A  void info(String s) %7B%0A    print(s + %22: Tree is %22 + height + %22 feet tall%22);%0A  %7D%0A%7D%0A%0A/**%0A * A class comment for Overloading%0A */%0Apublic class Overloading %7B%0A%0A  public static void main(String%5B%5D args) %7B%0A    for(int i = 0; i %3C 5; i++) %7B%0A      Tree t = new Tree(i);%0A      t.info();%0A      t.info(%22overloaded method%22);%0A    %7D%0A    // Overloaded constructor:%0A    new Tree();%0A  %7D%0A%7D /* Output:%0ACreating new Tree that is 0 feet tall%0ATree is 0 feet tall%0Aoverloaded method: Tree is 0 feet tall%0ACreating new Tree that is 1 feet tall%0ATree is 1 feet tall%0Aoverloaded method: Tree is 1 feet tall%0ACreating new Tree that is 2 feet tall%0ATree is 2 feet tall%0Aoverloaded method: Tree is 2 feet tall%0ACreating new Tree that is 3 feet tall%0ATree is 3 feet tall%0Aoverloaded method: Tree is 3 feet tall%0ACreating new Tree that is 4 feet tall%0ATree is 4 feet tall%0Aoverloaded method: Tree is 4 feet tall%0APlanting a seedling%0A*///:~%0A

Add exercise 16