Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
E 不能实现我的接口 HasName 是否有合理的原因?
public class SinglyLinkedList<E extends HasName> { // stuff... }
该extends关键字也适用于接口。那是:
extends
public class SinglyLinkedList<E extends HasName> {
意味着E必须是扩展类或实现接口的类型,称为HasName.
E
HasName
不可能编码E implements HasName- 这是由E extends HasName.
E implements HasName
E extends HasName
正在显示 MySQL 文本,就像没有在 TCPDF 中
在 TCPDF 中