Im trying to use the Comparable
interface to sort an arrayList of Car
objects using a "arrivalTime" field, by using a custom compareTo()
method, but it keeps telling me that I can't because the Car
object isn't abstract. I can't have it abstract. I need to instantiate the Car
objects..
Does anyone know why it would want me to make my class abstract?