An anonymous class is something like this:
SenseOfLife _42 = new SenseOfLife() {
public int eval() {
return 42;
}
};
I didn't understand why such an anonymous class can have an unbounded number of instances (this is a proposition).
While I'm defining this anonymous class it creates automatically an instance and assigns it to the variable _42
. So I have only one instance and cannot create a new instance.