/**
 * A driver for use with the Account class
 */
public class AccountDriver
{
    /**
     * The entry point of the application
     *
     * @param args   The command-line arguments
     */
    public static void main(String[] args)
    {
       Account       barney;
       Comparable    fred;
       Taxable       wilma;
       

       barney = new Account(1,   1000.00);
       fred   = new Account(2,     20.00);
       wilma  = new Account(3, 300000.00);       
    }


    /**
     * Summarize an Account
     *
     * @param acc   The Account to summarize
     */
    private static void summarize(Account acc)
    {
       System.out.print("This Account has a balance of: "+acc.getBalance());
    }


    /**
     * Summarize a Comparable
     *
     * @param comp   The Comparable to summarize
     */
    private static void summarize(Comparable comp)
    {
       System.out.print("This is, indeed, a Comparable");
    }


    /**
     * Summarize a Taxable
     *
     * @param table   The Taxable to summarize
     */
    private static void summarize(Taxable table)
    {
       System.out.print("This Taxable has taxes of: "+table.tax());
    }
    
}
