openjdk version "1.8.0_121"
Just looking at some sample code where ServiceResultHandler extends the Handler class.
public class ServiceResultHandler extends Handler {
}
In other classes where this is used I have seen it been declared like this:
private Handler mServiceResultHandler;
and being instantiated like this:
mServiceResultHandler = new ServiceResultHandler();
My question is shouldn't mServiceResultHandler be a ServiceResultHandler instead of a Handler i.e?
private ServiceResultHandler mServiceResultHandler
Just seems odd to me to have the type as Handler when ServiceResultHandler inherits all the attributes of the Handler class anyway.