FileDocCategorySizeDatePackage
PhoneTask.javaAPI DocExample374Mon Nov 13 12:11:54 GMT 2006collections

PhoneTask.java

package collections;

public final class PhoneTask extends Task {
  private final String name;
  private final String number;
  public PhoneTask(String name, String number) {
    this.name = name;
    this.number = number;
  }
  public String getName() { return name; }
  public String getNumber() { return number; }
  public String toString() { return "phone " + name; }
}