/** Birthday.java
   prints a birthday greeting to the screen
   used as an example program in lab.
   @author   Laura J. Baker
   @version 1.0:  
   August 28, 2007
*/

public class Birthday
{
  private String name_;
  
/** main method: creates an object of type Birthday
    then calls sing on that object
*/

  public static void main(String [] args)
    {
      Birthday myBday= new Birthday("Dr. Camden");
      myBday.sing();
    }
  /** 
    constructor for a Birthday object, creates an
    object with the given name
    @param theName - name to assign for the song
  */
  public Birthday (String theName)  
  {
    name_ = theName;
  }

  /**  prints the birthday song to screen 
       using value for name as created   
   */
  public void sing()
    {
      System.out.println("Happy Birthday to you, ");      
      System.out.println("Happy Birthday to you, ");      
      System.out.println("Happy Birthday dear " + name_);      
      System.out.println("Happy Birthday to you! ");
    }
}
