I have two async classes in my application which you can see below
class RegisterTokenAsync extends AsyncTask<String, Void, String>
and
class AuthenticateTokenAsync extends AsyncTask<Integer, Void, String>
now I want to create one other Base class and extends this two classes from that base class, but I can’t understand how I can do that ?
Java(also in android)Doesn’t supportMultiple inheritanceso you cant extend two class.you can Use
Multilevel inheritance.Like as,,
Or there are also
Interface,that can help….