interface 接口名称{ //常量成员 //抽象方法,不需要使用abstract } //使用 class A implements 接口,接口...{ //实现所有的接口抽象方法 }
implements 关键字 实现接口
接口的方法没有方法体
类可以实现多个接口