So does the compiler do something to actually make this code work?
posted 10 years ago
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.