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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!