2000-02-07 22:40:18 +01:00
|
|
|
// Class instinit
|
|
|
|
// Generated on Wed Feb 2 12:31:16 PST 2000
|
|
|
|
// Simple instance initializer test case.
|
|
|
|
|
2000-12-01 22:58:34 +01:00
|
|
|
class instinit {
|
2000-02-07 22:40:18 +01:00
|
|
|
|
|
|
|
String buffer = "No Oink! Oink!";
|
|
|
|
|
|
|
|
/* Instance initializer */
|
|
|
|
{
|
|
|
|
System.out.println ("Oinking...");
|
|
|
|
}
|
|
|
|
{
|
|
|
|
buffer = "Oink! Oink!";
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void main (String[] arg)
|
|
|
|
{
|
|
|
|
System.out.println ("Testing class `instinit'...");
|
|
|
|
System.out.println (new instinit ().buffer);
|
|
|
|
}
|
|
|
|
}
|