摘要: annotation type:type type是加在类上面的注释: 用的时候,直接在class上面注释就行了:注释是以annotation对象的形式存在的 获取注释对应属性值的方法: ans的长度是2 获取注释属性值 不用new bird 这样就可以了:MyAnnotation bb=Bird. 阅读全文
posted @ 2019-07-21 23:47 大乗 阅读(117) 评论(0) 推荐(0) 编辑