Sum s = new Sum(10, 15);
return s.compute() + s.compute();
}
public int containsAnonymClass() {
Sum lAnonym = new Sum() {
public int compute() {
return doubleIt() * (getA() + getB());
}
public int doubleIt() {
return 2;
}
};
return lAnonym.compute();
}