1) an interface can't implement a method so what are we suppose to do?
package com.codegym.task.task13.task1309;
/*
All that moves
*/
public class Solution {
public static void main(String[] args) {
}
interface CanMove{
Double speed();//an interface is not suppose to have an implementation
// so how can it return a Double?
//The speed method must return a Double and
//should not accept any arguments.
}
interface CanFly extends CanMove {
Double speed(CanFly parameter);
}
public class Move implements CanMove, CanFly {
public Double speed(){
return Double;
}
}
}