So does the compiler do something to actually make this code work?
Joined: Dec 30, 2005
Never mind. This empty Listener actually is put into a object pool. And the pool manager calls the listener's function newInstance(). And this function creates a new listener by using the second constructor.