Skip to content

Commit 8d8db43

Browse files
authored
he that receiveth me receiveth him that sent me
Verily, verily, I say unto you, He that receiveth whomsoever I send receiveth me; and he that receiveth me receiveth him that sent me.(John 13:20)
1 parent 1eb6d59 commit 8d8db43

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

‎task12/task1213/Solution.java‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
package com.javarush.task.task12.task1213;
2+
3+
//Verily, verily, I say unto you, He that receiveth whomsoever I send receiveth me;
4+
//and he that receiveth me receiveth him that sent me.(John 13:20)
5+
6+
/*
7+
«Исправь код», часть 2
8+
*/
9+
10+
public class Solution {
11+
public static void main(String[] args) {
12+
13+
}
14+
15+
public static abstract class Pet {
16+
public String getName() {
17+
return "Я - котенок";
18+
}
19+
20+
public abstract Pet getChild();
21+
}
22+
23+
}
24+
25+
26+
27+
/*
28+
«Исправь код», часть 2
29+
Исправь код, чтобы программа компилировалась.
30+
31+
32+
Требования:
33+
1. Класс Pet должен быть статическим.
34+
2. Класс Pet должен иметь два метода.
35+
3. Метод getChild() должен быть абстрактным.
36+
4. Класс Pet должен быть объявлен с модификатором, который запрещает создавать конкретные объекты этого класса.
37+
38+
package com.javarush.task.task12.task1213;
39+
40+
public class Solution {
41+
public static void main(String[] args) {
42+
43+
}
44+
45+
public static class Pet {
46+
public String getName() {
47+
return "Я - котенок";
48+
}
49+
50+
public Pet getChild();
51+
}
52+
53+
}
54+
*/

0 commit comments

Comments
 (0)