Last change
on this file was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
472 bytes
|
Line | |
---|
1 | class Base
|
---|
2 | {
|
---|
3 | int someNum()
|
---|
4 | {
|
---|
5 | System.out.println ("ok");
|
---|
6 | return 0;
|
---|
7 | }
|
---|
8 | }
|
---|
9 |
|
---|
10 | public class PR242 extends Base
|
---|
11 | {
|
---|
12 | public static void main(String args[])
|
---|
13 | {
|
---|
14 | new PR242();
|
---|
15 | }
|
---|
16 |
|
---|
17 | PR242()
|
---|
18 | {
|
---|
19 | new Inner().a();
|
---|
20 | }
|
---|
21 |
|
---|
22 | class Inner
|
---|
23 | {
|
---|
24 | public int dummy()
|
---|
25 | {
|
---|
26 | System.out.println ("wrong method called!!");
|
---|
27 | return -1;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void a()
|
---|
31 | {
|
---|
32 | System.out.println ("...");
|
---|
33 | System.out.println (someNum());
|
---|
34 | }
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.