记录点一
准备对一个刚刚启用的项目改造成mvp框架,在BaseFragment的oncreate中有这么一段 报错了Incompatible conditional operand types
if (this instanceof BaseView)
mPresenter.setVM(mModel,this);
后来发现baseFragment extends Fragment ,而BaseView是个类,由于单继承多实现的特性,造成BaseView 不可能是 BaseFragment的子类,所以会报错,根据单继承多实现的特性,把BaseView改成Interface就可以了,可见类和接口的基本概念对框架来说还是很重要的。