FileDocCategorySizeDatePackage
Overloading.javaAPI DocExample3149Mon Apr 06 18:10:26 BST 1998None

Tree

public class Tree extends Object

Fields Summary
int
height
Constructors Summary
Tree()

    prt("Planting a seedling");
    height = 0;
  
Tree(int i)

    prt("Creating new Tree that is "
        + i + " feet tall");
    height = i;
  
Methods Summary
voidinfo()

    prt("Tree is " + height
        + " feet tall");
  
voidinfo(java.lang.String s)

    prt(s + ": Tree is "
        + height + " feet tall");
  
static voidprt(java.lang.String s)

    System.out.println(s);