java中interface中的方法为什么不能是static方法

2025-05-14 11:54:50
推荐回答(1个)
回答(1):

接口的方法是抽象的,必须需要类去实现。
如果是static的方法,必须在定义的时候就实现逻辑。