I just find that interface Path has extended 3 class, which against the principle;
public interface Path
extends Comparable<Path>, Iterable<Path>, Watchable
????
I just find that interface Path has extended 3 class, which against the principle;
public interface Path
extends Comparable<Path>, Iterable<Path>, Watchable
????
The extends
keyword is used with interfaces to make them extend other interfaces (that is not extending multiple classes).
All the types after the extends
keyword of Path
are interfaces (Comparable
, Iterable
, and Watchable
).