mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 00:20:54 +07:00
17 lines
354 B
Java
17 lines
354 B
Java
public class InlineSingleImplementation {
|
|
interface MyIface {
|
|
void mySimpleMethod();
|
|
}
|
|
|
|
static class MyIfaceImpl implements MyIface {
|
|
@Override
|
|
public void mySimpleMethod() {
|
|
System.out.println(toString());
|
|
System.out.println(this.toString());
|
|
}
|
|
}
|
|
|
|
void test(MyIface iface) {
|
|
iface.<caret>mySimpleMethod();
|
|
}
|
|
} |