public class Solution {
public static void main(String[] args) {
}
interface CanMove{
Double spd = 1.1;
default Double speed() {
return spd;
}
}
interface CanFly extends CanMove {
default CanFly speed(CanFly fly){
return fly;
}
}
}
package com.codegym.task.task13.task1309;
/*
All that moves
*/
public class Solution {
public static void main(String[] args) {
}
interface CanMove{
Double spd = 1.1;
default Double speed() {
return spd;
}
}
interface CanFly extends CanMove {
default CanFly speed(CanFly fly){
return 1.1;
}
}
}