Setting up modules for student

This commit is contained in:
2020-05-29 09:33:31 -05:00
parent d1d6557bef
commit 867b906f0c
6 changed files with 50 additions and 4 deletions

View File

@@ -1,7 +1,17 @@
package Sorting;
/**
* This is an abstract class, its subclasses will inherit its methods and instance
* fields. Any abstract methods will have to be implemented in the subclasses.
*/
abstract class Sorter {
//This is an abstract class
//In this class you will write an abstract sort() method
//the method will be implemented by subclasses
/**
* An abstract sorting method. Each subclass will have to implement its own
* version of this method.
* @return A SortResult object holding number of comparisons, number of swaps, and the sorted array
*/
public abstract SortResult sort();
}