Which of the following classes is the least suitable candidate for containing a compareTo method?
(A) public class Point
{
private double x;
private double y;
//various methods follow
...
}
(B) public class Name
{
private String firstName;
private String lastName;
//various methods follow
...
}
(C) public class Car
{
private int modelNumber;
private int year;
private double price;
//various methods follow
...
}
(D) public class Student
{
private String name;
private double gpa;
//various methods follow
...
}
(E) public class Employee
{
private String name;
private int hireDate;
private double salary;
//various methods follow
...
}