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
Post a Comment