mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
22 lines
299 B
Java
22 lines
299 B
Java
interface I {
|
|
}
|
|
|
|
interface J extends I {
|
|
}
|
|
|
|
class IImpl implements I {
|
|
}
|
|
|
|
class JImpl implements J {
|
|
}
|
|
|
|
class X {
|
|
private static void <caret>method(int i, I intf) {
|
|
System.out.println("i = " + i + ", intf = " + intf);
|
|
}
|
|
|
|
{
|
|
J j = new JImpl();
|
|
method(0, j);
|
|
}
|
|
} |