Skip to content

Commit d5d98aa

Browse files
authored
I am the way, the truth, and the life
Jesus said to him, "I am the way, the truth, and the life. No one comes to the Father, except through me. (John 14:6)
1 parent 0ae52c1 commit d5d98aa

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

‎task13/task1304/Solution.java‎

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
package com.javarush.task.task13.task1304;
2+
3+
//Jesus said to him, "I am the way, the truth, and the life. No one comes to the Father, except through me. (John 14:6)
4+
5+
/*
6+
Selectable и Updatable
7+
*/
8+
9+
public class Solution {
10+
public static void main(String[] args) throws Exception {
11+
}
12+
13+
interface Selectable {
14+
void onSelect();
15+
}
16+
17+
interface Updatable {
18+
void refresh();
19+
}
20+
21+
public class Screen implements Selectable, Updatable {//напишите тут ваш класс
22+
public void onSelect() {}
23+
public void refresh() {}
24+
}
25+
}
26+
27+
28+
29+
30+
/*
31+
Selectable и Updatable
32+
Создай класс Screen и реализуй в нем интерфейсы Selectable и Updatable.
33+
Не забудь реализовать методы!
34+
35+
36+
Требования:
37+
1. Класс Screen должен реализовывать(implements) интерфейс Selectable.
38+
2. Класс Screen должен реализовывать(implements) интерфейс Updatable.
39+
3. В классе Screen должен быть реализован метод onSelect интерфейса Selectable.
40+
4. В классе Screen должен быть реализован метод refresh интерфейса Updatable.
41+
42+
package com.javarush.task.task13.task1304;
43+
44+
*
45+
Selectable и Updatable
46+
*
47+
48+
public class Solution {
49+
public static void main(String[] args) throws Exception {
50+
}
51+
52+
interface Selectable {
53+
void onSelect();
54+
}
55+
56+
interface Updatable {
57+
void refresh();
58+
}
59+
60+
//напишите тут ваш класс
61+
}
62+
63+
*/

0 commit comments

Comments
 (0)