Skip to content

Commit a565537

Browse files
authored
God has power to make him stand
Who are you who judge another's servant? To his own lord he stands or falls. Yes, he will be made to stand, for God has power to make him stand. (Romans 14:4)
1 parent 0c2f4f2 commit a565537

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

task13/task1323/Solution.java

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
package com.javarush.task.task13.task1323;
2+
3+
//Who are you who judge another's servant? To his own lord he stands or falls.
4+
//Yes, he will be made to stand, for God has power to make him stand. (Romans 14:4)
5+
6+
/*
7+
Интерфейс Updatable в классе Screen
8+
*/
9+
10+
public class Solution {
11+
public static void main(String[] args) throws Exception {
12+
}
13+
14+
interface Selectable {
15+
void onSelect();
16+
}
17+
18+
interface Updatable extends Selectable {
19+
void refresh();
20+
}
21+
22+
class Screen implements Updatable {
23+
public void refresh() {}
24+
public void onSelect() {}
25+
}
26+
}
27+
28+
29+
30+
/*
31+
Интерфейс Updatable в классе Screen
32+
Реализовать интерфейс Updatable в классе Screen.
33+
34+
35+
Требования:
36+
1. Интерфейс Updatable должен наследовать(extends) интерфейс Selectable.
37+
2. Класс Screen должен реализовывать(implements) интерфейс Updatable.
38+
3. В классе Screen должен быть реализован метод onSelect интерфейса Selectable.
39+
4. В классе Screen должен быть реализован метод refresh интерфейса Updatable.
40+
41+
package com.javarush.task.task13.task1323;
42+
43+
*
44+
Интерфейс Updatable в классе Screen
45+
*
46+
47+
public class Solution {
48+
public static void main(String[] args) throws Exception {
49+
}
50+
51+
interface Selectable {
52+
void onSelect();
53+
}
54+
55+
interface Updatable extends Selectable {
56+
void refresh();
57+
}
58+
59+
class Screen {
60+
61+
}
62+
}
63+
64+
*/

0 commit comments

Comments
 (0)