Viewing file: comp249/assignment1/Talker.java | Back to directory listing
Author: Loren Segal | Last modified: February 20 2006 07:00 pm | Download

 
/**
 * Widgets that can talk will implement this interface
 * 
 * @author Loren Segal 
 * @version 1.0
 */
 
public interface Talker
{
    /**
     * The way that the implementing widget will say 'Hi'
     * 
     * @return A phrase of welcome
     */
    public String sayHi();
 
    /**
     * The way that the implementing widget will say 'Bye'
     * 
     * @return A phrase of departure
     */
    public String sayBye();
}