There is just one question in which i am got confused...
There are two interfaces A , B which contains the same method methodC()...and C class implements A&B. which interface method it should be implemented A or B
Now as per my analysis i have lyk say below class..
interface A {
/**
* Doc A
* **/
public void MethodA();
public String MethodB();
}
interface B {
/**
* Doc B
* **/
public String MethodA();
public void MethodB();
}
class lucy implements A,B{
@Override
public String MethodA() {
//To change body of implemented methods use File | Settings | File Templates.
return null;
}
@Override
public String MethodB() {
//To change body of implemented methods use File | Settings | File Templates.
return null;
}
}
Output:
Hello Hello