Code that demonstrates how anonymous innerclasses implicitly extend another class and how that works with constructors