how to implement two interfaces having same methods
abhishek kunal
Ranch Hand
Joined: Jul 27, 2009
Posts: 42
posted
0
suppose i have two interfaces ... interface i1 and i2 and both have method of exact signature.....
public void called(), so if i am implementing both of them,then how to override(define) two different methods(one for interface i1 and another for interface i2 ). as compiler will not allow two method of exact signature in a class or other entities...so how we gonna give two methods for these two interfaces,as a single method cannot suffice the needs of two interfaces....
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1791
2
posted
0
Create separate class files to imlement each interface or create inner class to implement the interfaces.