Types, Classes, Interfaces
Classes and Interfaces
Student Example
Comparable Interface
Student Class
Notes:
Student class
says that it
implements Comparable<Student>
implements the
compareTo
method (the only method in the Comparable interface)
implements (or should implement) the
equals
method (topic for future class)
Previous Slide
Next Slide
Alyce Brady, Kalamazoo College