Is that a right way of using interface callback?
问题 I read this and this and found out that in class B I need to save a reference to class A and when something happens in class B we execute a method defined by an interface that class A implements. Well somehow I understood it. I use interfaces in a bit different way to call a callback: interface IHelper { void onActionDone (); void onActionFailed (); } public class Helper implements IHelper { public Helper (Param param) { // here we do what Helper class intended to do // ... // now call the