Question: Which is not a requirement when you create a compare To() method that overrides the Object class compare To() method? a. It must accept a
Which is not a requirement when you create a compare To() method that overrides the Object class compare To() method?
a. It must accept a parameter.
b. Its return type must be boolean.
c. It should return a value that is –1, 0, or 1.
d. It must be named compare To ().
Step by Step Solution
3.31 Rating (163 Votes )
There are 3 Steps involved in it
b When you override the ... View full answer
Get step-by-step solutions from verified subject matter experts
