Question: Abstract Classes and Interfaces public class Lecturer implements Comparable { // ... Possible Lecturer attributes ... public int compareTo(Object o) { // TODO: IMPLEMENTATION }
Abstract Classes and Interfaces
public class Lecturer implements Comparable {
// ... Possible Lecturer attributes ...
public int compareTo(Object o) {
// TODO: IMPLEMENTATION
}
}
1. Describe 2 (TWO) possible methods by which 2 Lecturer objects can be compared
2. Construct compareTo(Object) method that implements 1 (ONE) comparison method
from your answer to Question 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
