Why there is no @Implements annotation in Java?

前端 未结 4 1048
生来不讨喜
生来不讨喜 2021-01-11 14:05

I have found the @Override annotation very much helpful while overriding some super class methods in my derived classes. Basically the compiler detects the flaw

4条回答
  •  死守一世寂寞
    2021-01-11 14:54

    To implement an interface the keyword already exists: implements. but for override, no such keyword existed. @Override is not a keyword but works similar.

提交回复
热议问题