6.9.7.An instance of an anonymous (unnamed) subclass of MyClass.
class MyClass { public void pop() {
System.out.println("popcorn");
}
} public class MainClass {
MyClass p = new MyClass() { public void pop() {
System.out.println("anonymous popcorn");
}
};
}