Suppose that a researcher decides to use an ordered list to organize Student objects. What must be done to the Student class to support this?

What will be an ideal response?
```
public class Student
{
private String name;
private double courseAverage;
// accessor, mutator, and
// support methods ...
}
```


Elements in an ordered list must be comparable. The Student class must implement the Comparable
interface and it must provide a body for the compareTo method.

Computer Science & Information Technology

You might also like to view...

Polymorphism enables you to:

a. program in the general. b. program in the specific. c. absorb attributes and behavior from previous classes. d. hide information from the user.

Computer Science & Information Technology

To avoid destroying valid output data residing in a buffer, UNIX responds to a write command by marking the appropriate buffer __________.

a. dirty b. active c. inactive d. ready

Computer Science & Information Technology

The Angle ________ includes background shapes to create the design

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ____ illustrates the ways in which people access information.

A. sphere of use B. sphere of protection C. working control D. benchmark

Computer Science & Information Technology