Last change
on this file was 1389, checked in by bird, 21 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:
391 bytes
|
Line | |
---|
1 | // Regression test that overrides a virtual method with a final one.
|
---|
2 |
|
---|
3 | class override1
|
---|
4 | {
|
---|
5 | public int x1 () { return 3; }
|
---|
6 | }
|
---|
7 |
|
---|
8 | public class override extends override1
|
---|
9 | {
|
---|
10 | public final int x1() { return 5; }
|
---|
11 | public final int x2() { return 7; }
|
---|
12 |
|
---|
13 | public static void main(String[] args)
|
---|
14 | {
|
---|
15 | override z = new override();
|
---|
16 | System.out.println(z.x1());
|
---|
17 | System.out.println(z.x2());
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.