We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d75b11f commit 5a3c835Copy full SHA for 5a3c835
EIP/Java/README.md
@@ -312,6 +312,32 @@
312
313
- [답] static
314
315
+- 문제19. 다음은 Java 프로그램이다. 실행 결과를 쓰시오.
316
+
317
+ ```java
318
+ public class over1 {
319
+ public static void main(String[] args) {
320
+ ovr1 a1 = new ovr1();
321
+ ovr2 a2 = new ovr2();
322
+ System.out.println(a1.sun(3,2) + a2.sun(3,2));
323
+ }
324
325
+ int sun(int x, int y) {
326
+ return x + y;
327
328
329
330
+ class ovr2 extends ovr1 {
331
332
333
+ return x - y + super.sun(x,y);
334
335
336
337
+ ```
338
339
+ - [답] 11
340
341
342
343
#### 2022년 3회
0 commit comments