In java when an interface extends another interface:
- Why does it implement its methods?
- How can it implement its methods when an interface can't contain a method body
- How can it implement the methods when it extends the other interface and not implement it?
- What is the purpose of an interface implementing another interface?
This has major concepts in Java!
EDIT:
public interface FiresDragEvents {
void addDragHandler(DragHandler handler);
void removeDragHandler(DragHandler handler);
}
public interface DragController extends FiresDragEvents {
void addDragHandler(DragHandler handler);
void removeDragHandler(DragHandler handler);
void dragEnd();
void dragMove();
}
In eclipse there is the implement sign besides the implemented methods in DragController
.
And when I mouse-hover it, it says that it implements the method!!!