// an anonymous class: declare and use


interface I {

	public void f ();	
}

class A {

	public I g() {
		return new I()  {
			public void f() { System.out.println("Anonymous");};
		}; 

	}

	// void g() { B b = new B();} // will produce error
}

class C { 

 public static void main (String args[]) {

	A a = new A();
	I i = a.g();
	i.f();

 }
}

