Why declare an interface as abstract?

前端 未结 11 957
予麋鹿
予麋鹿 2020-12-13 03:36

What\'s point of declaring an interface as abstract? Same thing for an interface method. Is there a point to it?

eg.

public abstract interface Presen         


        
11条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 04:10

    I think just verboseness, explicitness and consistency with the class syntax and semantics...

    You don't have to, but maybe it could help if some reader of your code is distracted or not very versed in Java.

提交回复
热议问题