Can someone tell me how to return a double ? Thx
package com.codegym.task.task13.task1309;
/*
All that moves
*/
public class Solution {
public static void main(String[] args) {
}
interface CanMove{
public default Double speed(Double speed){
return speed;
}
}
interface CanFly extends CanMove{
public default Double speed(Double CanFly){
return CanFly;
}
}
}