edu.pdx.cs399J
Class AbstractPhoneBill

java.lang.Object
  extended by edu.pdx.cs399J.AbstractPhoneBill

public abstract class AbstractPhoneBill
extends Object

This abstract class represents a customer's phone bill that consists of multiple phone calls.

Author:
David Whitlock

Constructor Summary
AbstractPhoneBill()
           
 
Method Summary
abstract  void addPhoneCall(AbstractPhoneCall call)
          Adds a phone call to this phone bill
abstract  String getCustomer()
          Returns the name of the customer whose phone bill this is
abstract  Collection getPhoneCalls()
          Returns all of the phone calls (as instances of AbstractPhoneCall) in this phone bill
 String toString()
          Returns a brief textual description of this phone bill
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPhoneBill

public AbstractPhoneBill()
Method Detail

getCustomer

public abstract String getCustomer()
Returns the name of the customer whose phone bill this is


addPhoneCall

public abstract void addPhoneCall(AbstractPhoneCall call)
Adds a phone call to this phone bill


getPhoneCalls

public abstract Collection getPhoneCalls()
Returns all of the phone calls (as instances of AbstractPhoneCall) in this phone bill


toString

public String toString()
Returns a brief textual description of this phone bill

Overrides:
toString in class Object


Copyright © 2000-2009 Portland State University. All Rights Reserved.