task 1) change Object to Comparable
Note that Comperable is an interface. Objects that inherit from Comperable have a method compareTo().
老师让把ADT里的Object改为Comparable,Comparable是接口,Object是从接口继承来的,但是我理解不了改成Comparable会怎样?
卧龙绝圣
相关分类