Implementation of interface methods in Android subclass

recently, I found a very confusing problem during development. The process probably goes like this:

at first, I created a base class and interface with the following code:

public abstract class BaseActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    public void initView(){

    };

    public void initData(){

    };

    public void initEvent(){

    };
    
}
public interface Presenter {

    void initView();

    void initData();

    void initEvent();

}

then the problem arises,

public class HttpMultiActivity extends BaseActivity implements Presenter {

you can see that in the subclass of the base class, I referenced the Presenter interface, but in fact, after referencing the interface, I did not implement the methods in the interface in the subclass, but the methods in the interface are actually methods that can be implemented in the parent class (that is, the BaseActivity base class). The idea compiler also has such a small symbol
clipboard.png

in the interface methods implemented by the parent class.

the foundation of the main java of the building is relatively weak, so I have an open mind to ask for advice here.

Nov.22,2021
Menu