I know this type question has been answered multiple times and it might get tagged as duplicate
I have a structure like this
public interface service{
public void sayHello();
}
public abstract class AbstractService{
public void sayHello(){
System.out.println("Hello!!");
}
}
public class MyService extends AbstractService implements service{
public void sayHello(){
super.sayHello();
}
}
I know java does not allow multiple inheritance and we use interfaces to get away with that. But with this structure, I can't find a benefit/a business case on why I need to extend and implement? Because I have a concrete method in my abstract class.