摘要: 第一,直接在接口中指定具体类型 interface Info<T> { //在接口上定义泛型 public T getVar() ; } class InfoImpl implements Info<String> { //定义泛型接口的子类 private String var ; public 阅读全文
posted @ 2019-04-24 16:25 PhoenixTree(梧桐树) 阅读(168) 评论(0) 推荐(0)