mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 08:59:10 +08:00
20 lines
251 B
Java
20 lines
251 B
Java
|
public class Test implements B
|
||
|
{
|
||
|
public static void main(String args[])
|
||
|
{
|
||
|
Test t = new Test();
|
||
|
B a = (B) t;
|
||
|
a.a();
|
||
|
}
|
||
|
|
||
|
public void a()
|
||
|
{
|
||
|
System.out.println("A");
|
||
|
}
|
||
|
|
||
|
public void b()
|
||
|
{
|
||
|
System.out.println("B");
|
||
|
}
|
||
|
}
|