quanke
Thinking in Java (Java 编程思想)

Updated a month ago

defender20 (@defender20) started discussion #23

7 months ago · 0 comments

Open

大家可以看到,一旦设置好框架,就可以非常方便地重复使用象这样的一个设计——只需简单地写一个类,将“需要发生变化”的东西封装进去,然后将一个对象传给SortVector即可。

8.5 排序 (Edit this file)

以上代码中e.nextElement()不需要对取出的对象进行重新造型吗?如果失去了类型信息的话,那么应该会调用Object.toString()方法.

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant