mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-25 17:09:35 +08:00
37 lines
472 B
Java
37 lines
472 B
Java
|
class Base
|
||
|
{
|
||
|
int someNum()
|
||
|
{
|
||
|
System.out.println ("ok");
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class PR242 extends Base
|
||
|
{
|
||
|
public static void main(String args[])
|
||
|
{
|
||
|
new PR242();
|
||
|
}
|
||
|
|
||
|
PR242()
|
||
|
{
|
||
|
new Inner().a();
|
||
|
}
|
||
|
|
||
|
class Inner
|
||
|
{
|
||
|
public int dummy()
|
||
|
{
|
||
|
System.out.println ("wrong method called!!");
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
public void a()
|
||
|
{
|
||
|
System.out.println ("...");
|
||
|
System.out.println (someNum());
|
||
|
}
|
||
|
}
|
||
|
}
|