Thanks for the reply!
public class
Test {
public Test() //must have because you overloaded the default constructor below. If you do not
{ //you will cause a compiler error
}
String displayString = "Hello, World";
public Test(String aString)
{
displayString = aString;
}
public void display()
{
System.out.println(displayString);
}
public static void main(String argv[])
{
Test x = new Test();
x.display();
Test y = new Test("You must have a default construtor");
y.display();
}
}
[ October 09, 2003: Message edited by: Jacob Michaels ]