In the book written by kathy & bates(scjp)on page 647 there is a program on anonymous inner classes:--
class Popcorn {
public void pop() {
System.out.println("popcorn");
}
}
class Food{
Popcorn p = new Popcorn() {
public void pop() {
System.out.println("anonymous popcorn");
}
};
}
in the above program how to create the anonymous inner class object.
please help!!