An inner class that mutates outer state
An inner class that mutates outer state
Answer
public class LightOn extends Event { public LightOn(long t) { super(t); } public void action() { light = true; } }
action() assigns the OUTER GreenhouseControls field `light` directly — the inner class has full access to its enclosing object's private members.