I mean, the validation part, it keeps saying that I didn't meet the last requirement which seems odd enough.
When I implement every interface, it says it should be Miner.
So no matter I add Miner as an implementation or not, it would just "not be" Miner?
I don't understand this, please help!
package zh.codegym.task.task12.task1228;
/*
Human 类的接口
*/
public class Solution {
public static void main(String[] args) {
Human human = new Human();
System.out.println(human);
}
public static interface Employee {
public default void workLazily() {
}
}
public static interface Businessman {
public default void workHard() {
}
}
public static interface Secretary {
public default void workLazily() {
}
}
public static interface Miner {
public default void workVeryHard() {
}
}
public static class Human implements Miner, Businessman, Employee, Secretary {
public void workHard() {
}
public void workLazily() {
}
}
}