Hi, I need to fix this example. I dont know how to not implement the interface but dont implement the method.
package pl.codegym.task.task12.task1229;
/*
Klasa macierzysta klasy CTO
*/
public class Solution {
public static void main(String[] args) {
CTO cto = new CTO();
System.out.println(cto);
}
public static interface Businessman {
public void workHard();
}
public static class Dzik {
public void work(){
System.out.println("asdsad");
}
}
public static class CTO extends Dzik implements Businessman {
@Override
public void workHard() {
}
}
}