1 // Class nested_with_ctor
2 // Generated on Mon Jan 31 18:31:47 PST 2000
3 // The nested class contains explicit constructors. Their argument
4 // lists should be augmented with the alias initializer values when
5 // the ctors are seen declared (as opposed to generated.)
7 class nested_with_ctor
{
9 void fct(final String s
, final int i
)
13 String
getString () { return buffer
; }
14 nested (int i
) { buffer
= "(int)"+i
; }
17 nested x
= new nested ();
18 System
.out
.println (x
.getString ());
19 nested y
= new nested (123);
20 System
.out
.println (y
.getString ());
22 public static void main (String
[] arg
)
24 System
.out
.println ("Testing class `nested_with_ctor'...");
25 new nested_with_ctor ().fct ("Yikes!", 321);