added constructor to allow variant subtyping
This commit is contained in:
@@ -6,6 +6,10 @@ public class QuickSorter extends Sorter{
|
|||||||
super("quick", filename);
|
super("quick", filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public QuickSorter(String qsortVariant, String filename){
|
||||||
|
super(qsortVariant, filename);
|
||||||
|
}
|
||||||
|
|
||||||
void sort(){
|
void sort(){
|
||||||
quickSort(0,numbers.length-1);
|
quickSort(0,numbers.length-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user