add another constructor for subtyping
This commit is contained in:
@@ -6,6 +6,10 @@ public class WordQuickSorter extends Sorter{
|
|||||||
super("quick sort", reader);
|
super("quick sort", reader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public WordQuickSorter(String type, RandomWordFileReader reader) {
|
||||||
|
super(type, reader);
|
||||||
|
}
|
||||||
|
|
||||||
void sort() {
|
void sort() {
|
||||||
quicksort(0, words.length-1);
|
quicksort(0, words.length-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user