blob: 3e54764d40a8644c819e7b6bee9d81391335d8a3 [file] [log] [blame]
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;
}
}