Created
November 12, 2014 21:39
-
-
Save alexshavelev/31108ee570683481d8bc to your computer and use it in GitHub Desktop.
level13.lesson02.task09;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level13.lesson02.task09; | |
/* Наследование интерфейса | |
1. Создать интерфейс Movable с методом speed. | |
2. Метод speed возвращает значение типа Double и не принимает параметров. | |
3. Создать и унаследовать интерфейс Runable от интерфейса Movable. | |
4. Добавить в интерфейс Runable метод speed. | |
5. Метод speed возвращает значение типа Double и принимает один параметр типа Runable. | |
*/ | |
public class Solution | |
{ | |
public static void main(String[] args) throws Exception | |
{ | |
} | |
interface Movable{ | |
Double speed(); | |
} | |
interface Runable extends Movable{ | |
//@Override | |
Double speed(Runable a); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment