java - How can I extend 2 classes -


i want extend 2 classes don't know how, know silly question need it.

i want so, impossible. in way can ?

public class mclass extends fragment extends extends listactivity {  } 

can me ? thanks

simple answer cannot. java doesn't support multiple inheritance of implementation.

you can create class implements interfaces of both 2 classes (or inherits 1 , implement interface of other one) , delegate calls instance keep reference to.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -