All pastes #391786 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-12 11:47 UTC
rendered paste body

public abstract class Customer implements Cloneable {
  private static String name, telephoneNumber, address, accountNumber;
  private static int age;
  public Customer() {
  //if this does not work, put accessors in constructor here
  }
  public static void setName(String newName)
  {
    name = newName;
  }
  public static void setTelephoneNumber(String newPhone)
  {
    telephoneNumber = newPhone;
  }
  public static void setAddress(String newAddress)
  {
    address = newAddress;
  }
  public static void setAccountNumber(String newAccountNumber)
  {
    accountNumber = newAccountNumber;
  }
  public static void setAge(int newAge)
  {
    age = newAge;
  }
  public static String getName()
  {
    return name;
  }
  public static String getTelephoneNumber()
  {
    return telephoneNumber;
  }
  public static String getAddress()
  {
    return address;
  }
  public static String getAccountNumber()
  {
    return accountNumber;
  }
  public static int getAge()
  {
    return age;
  }
  
  public abstract double getSavingsInterest();
  public abstract double getCheckInterest();
  public abstract double getCheckCharge();
  public abstract double getOverdraftPenalty();

}