add another constructor for subtyping

This commit is contained in:
2020-07-03 17:16:26 -05:00
parent a3a68854eb
commit 7f2369f5cf

View File

@@ -6,6 +6,10 @@ public class WordQuickSorter extends Sorter{
super("quick sort", reader);
}
public WordQuickSorter(String type, RandomWordFileReader reader) {
super(type, reader);
}
void sort() {
quicksort(0, words.length-1);
}