If the class is a part of public API and it implements some listeners interface, then it leaks its implementation details (and what happens if client just invokes a method of that listener interface?)
One word here: encapsulation
p
Paul Woitaschek
09/09/2018, 10:58 AM
I'm only taking about memory / performance, not API design