What does the first expression mean?
The first expression in Figure 1 instantiates a new
object from an unnamed and previously undefined class, which
- Automatically extends the class named className, and
- Cannot explicitly implement any interfaces.
The body of the new class is given by classBody.
A new class that extends
className is defined,
- a new object of the new class is instantiated, and
- the expression is replaced by a reference to the new object.