/**
 * An example that illustrates the use of interfaces.
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class PersonDriver
{
    /**
     * The entry point of the application.
     *
     * @param args  The command line arguments (ignored)
     */
    public static void main(String[] args)
    {
        Person  bart, lisa, maggie, oldest;
        

        bart   = new Person("Bart Simpson",  10);
        lisa   = new Person("Lisa Simpson",   8);
        maggie = new Person("Maggie Simpson", 1);

        oldest = (Person)Statistics.max(bart, lisa, maggie);
        System.out.printf("%s is the oldest at %d", 
                          oldest.getName(), oldest.getAge());
    }
    
}
