Smoke and mirrors

Additional smoke and mirrors are used behind the scenes when you define and instantiate an anonymous class.

This involves the automatic generation of code to cause things to behave as they do.

You don't have to write that extra code, and you don't have to maintain it. The extra code is written for you.

If you modify your class structure later, the extra code is automatically modified accordingly.

You can read about the code that is automatically generated in my earlier lessons on local classes and member classes.

File: av.htm [Next] [Prev]