Skip to content

Commit 38cb54a

Browse files
authored
He who has seen me has seen the Father
Jesus said to him, "Have I been with you such a long time, and do you not know me, Philip? He who has seen me has seen the Father. How do you say, 'Show us the Father?' (John 14:9)
1 parent b86b290 commit 38cb54a

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

task13/task1307/Solution.java

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
package com.javarush.task.task13.task1307;
2+
3+
// Jesus said to him, "Have I been with you such a long time, and do you not know me, Philip?
4+
//He who has seen me has seen the Father. How do you say, 'Show us the Father?' (John 14:9)
5+
6+
/*
7+
Параметризованый интерфейс
8+
*/
9+
10+
public class Solution {
11+
public static void main(String[] args) throws Exception {
12+
}
13+
14+
interface SimpleObject<T> {
15+
SimpleObject<T> getInstance();
16+
}
17+
18+
class StringObject implements SimpleObject<String> //допишите здесь ваш код
19+
{
20+
public SimpleObject<String> getInstance() {
21+
return new StringObject();
22+
}
23+
}
24+
}
25+
26+
27+
28+
/*
29+
Параметризованый интерфейс
30+
В классе StringObject реализуй интерфейс SimpleObject с параметром типа String.
31+
32+
33+
Требования:
34+
1. Класс StringObject должен реализовывать интерфейс SimpleObject.
35+
2. Интерфейс SimpleObject в классе StringObject должен быть реализован с параметром типа String.
36+
3. В классе StringObject реализовать метод getInstance интерфейса SimpleObject.
37+
4. Дополнительные классы или интерфейсы создавать нельзя.
38+
39+
package com.javarush.task.task13.task1307;
40+
41+
/*
42+
Параметризованый интерфейс
43+
*/
44+
45+
public class Solution {
46+
public static void main(String[] args) throws Exception {
47+
}
48+
49+
interface SimpleObject<T> {
50+
SimpleObject<T> getInstance();
51+
}
52+
53+
class StringObject //допишите здесь ваш код
54+
{
55+
}
56+
}
57+
*/

0 commit comments

Comments
 (0)