Source of ConsoleWelcomeTest.java


  1: //ConsoleWelcomeTest.java
  2: //A "test driver" for the ConsoleWelcome class
  3: 
  4: public class ConsoleWelcomeTest
  5: {
  6:     public static void main(String[] args)
  7:     {
  8:         //We use "app" as a short generic term for "application".
  9:         ConsoleWelcome app = new ConsoleWelcome(
 10:             "Welcome to the Java Workshop!",
 11:             "Friday, May 6, 2005");
 12:         app.display();
 13:     }
 14: }
 15: 
 16: /*
 17: Note that, in the very best object-oriented tradition, this
 18: little test driver first creates an object, or an "instance",
 19: of the class ConsoleWelcome, and then sends it a message to
 20: display itself.
 21: */