Chris R. Miller wrote: What about making anonymous classes legal? class A {} class B {} class AB : A { class : B {} } Granted you couldn't cast AB as a B type but you'd at least get class B's functionality...