
Patrick B. answered 07/19/19
Math and computer tutor/teacher
You are defining the methods in the interface...
The methods shall work with a specific type of data..
For example, consider the quick sort routine.
The algorithm works the same way regardless of whatever type of data is being sorted.
So an interface that does the comparison is passed to the quicksort routine.