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
Post a Comment