mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-18 07:15:51 +07:00
16 lines
293 B
Java
16 lines
293 B
Java
public class Test implements Interface{
|
|
public int myField = init();
|
|
|
|
public int init() {
|
|
return 1;
|
|
}
|
|
|
|
public static void main(String[] args){
|
|
Interface i = new Test();
|
|
System.out.println(i.getField());
|
|
}
|
|
|
|
public int getField() {
|
|
return myField;
|
|
}
|
|
} |