I think that only method definitions and constant definitions can be defined in the interface It was different, so it was just a memo
Hoge.java
public interface Hoge{
public int A = 10; //Definition of constants
public void hoge(); //Method definition
public class InnerClass{ //Inner class definition
}
}
I didn't know that an inner class could be defined.
http://yuroyoro.hatenablog.com/entry/20080707/1215431467 https://teratail.com/questions/36600 http://www.atmarkit.co.jp/ait/articles/1007/27/news103.html
Recommended Posts