I have a question: In Java, I have a class Fresher, which extends Employee and implements an interface IFresher. Please refer the code below.
public interface IFresher {
// Some other stuff
public void takeCall();
}
public class Employee extends Human {
// Some other stuff
public abstract void takeCall()
{
// Some basic implementation
}
}
class Fresher extends Employee implements IFresher
{
@Override
public void takeCall() {
}
}
Question: Which takeCall() method gets implemented in the Fresher sub class, is it from interface or the super class, What is order of hierarchy followed in such cases when there is a conflict between the super class and the interface?