interface汇总

interface声明可以包含方法签名,默认方法,静态方法和常量定义。具有实现的唯一方法是默认方法和静态方法。

实现interface的类必须实现interface中声明的所有方法。

interface名称可以在任何可以使用类型的地方使用。