@interface 声明注解,自动继承java.lang.annotation.Annotation接口
格式:public @interface 注解名{定义内容}
ElementType.METHOD)
(RetentionPolicy.SOURCE)
public @interface MyOverride {
}
(
Java 自定义注解
阅读 160
2022-03-24
@interface 声明注解,自动继承java.lang.annotation.Annotation接口
格式:public @interface 注解名{定义内容}
ElementType.METHOD)
(RetentionPolicy.SOURCE)
public @interface MyOverride {
}
(
相关推荐
精彩评论(0)