Skip to content

Commit 045bc7c

Browse files
authored
he must rise from the dead
For as yet they didn't know the Scripture, that he must rise from the dead. (John 20:9)
1 parent ceae168 commit 045bc7c

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
2+
//For as yet they didn't know the Scripture, that he must rise from the dead. (John 20:9)
3+
4+
package com.javarush.task.task23.task2302;
5+
6+
/*
7+
Запрети переопределение
8+
*/
9+
public class Solution {
10+
11+
public static class Listener {
12+
public final void onMouseDown(int x, int y) {
13+
//do something on mouse down event
14+
}
15+
16+
public void onMouseUp(int x, int y) {
17+
//do something on mouse up event
18+
}
19+
}
20+
21+
public static void main(String[] args) {
22+
23+
}
24+
}
25+
/*
26+
Запрети переопределение
27+
Запрети переопределение метода onMouseDown.
28+
29+
30+
Требования:
31+
1. Класс Listener должен быть создан внутри класса Solution.
32+
2. Класс Listener должен быть публичным.
33+
3. Метод onMouseDown должен быть публичным.
34+
4. Должна быть запрещена возможность переопределить метод onMouseDown.
35+
36+
package com.javarush.task.task23.task2302;
37+
38+
*
39+
Запрети переопределение
40+
*
41+
public class Solution {
42+
43+
public static class Listener {
44+
public void onMouseDown(int x, int y) {
45+
//do something on mouse down event
46+
}
47+
48+
public void onMouseUp(int x, int y) {
49+
//do something on mouse up event
50+
}
51+
}
52+
53+
public static void main(String[] args) {
54+
55+
}
56+
}
57+
58+
*/

0 commit comments

Comments
 (0)