public class Anonymous {
	private TestClass test() {
		return new TestClass() {
			public void hello() {
				System.out.println("overridden test!");
			} //hello()
		}; //class TestClass
	} //test()

	public static void main(String[] args) {
		TestClass myRV;
		myRV = (new Anonymous()).test();
		myRV.hello();

		System.out.println( myRV instanceof TestClass);
		System.out.println( myRV.getClass().getName() );
	} //end main()
} //class Anonymous

class TestClass {
	public void hello() {
		System.out.println("original");
	} //hello()
} //class TestClass