android - Java multiple interface inhertirance and value passing -


i planning make large class in java should implement multiple listener interfaces , send native code. point of handle events kinds of "views".

how common practice in java?

another question if such class created, passing multiple objects such button.setonclicklistener(class); create new instances, or passes reference/pointer it?

i advise consider using multiple classes, 1 each listener implementation. passing reference, not creating new instance.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -