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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -