Setting up modules for student
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user