... to be sorted are implicitly upcast when passed to the sort method. ... Once an object is upcast, you cannot call methods that do not exist in the supertype. ...
... to be sorted are implicitly upcast when passed to the sort method. ... Once an object is upcast, you cannot call methods that do not exist in the supertype. ...