maskleo
2/28/2018 - 6:38 AM

extend

interface Jukebox {
    default String rock() {
        return "... all over the world!";
    }
}

interface Carriage {
    default String rock() {
        return "... from side to side";
    }
}

class MusicalCarriage implements Carriage, Jukebox {

    @Override
    public String rock() {
        return Carriage.super.rock();
    }
}