Topic: JDK问当中接口为什么这么声明?请解释原因

  Print this page

1.JDK问当中接口为什么这么声明?请解释原因 Copy to clipboard
Posted by: whlmdcg
Posted on: 2004-12-08 20:20

public interface Set<E>
extends Collection<E>


-----------------------------------------
public abstract class Collator extends Object
implements Comparator<Object>, Cloneable

2.Re:JDK问当中接口为什么这么声明?请解释原因 [Re: whlmdcg] Copy to clipboard
Posted by: wuyongjin
Posted on: 2004-12-08 20:32

interface inherit

3.Re:JDK问当中接口为什么这么声明?请解释原因 [Re: whlmdcg] Copy to clipboard
Posted by: whlmdcg
Posted on: 2004-12-08 20:49

<Object>

<E>
这些都是什么东西?

4.Re:JDK问当中接口为什么这么声明?请解释原因 [Re: whlmdcg] Copy to clipboard
Posted by: breezehou
Posted on: 2004-12-10 10:35

这是java1.5才支持的,跟C++的模版差不多,即泛型化


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923