Question: Exercise 3 Add an equals instance method to the IntList class, so that x . equals ( y ) returns true if the IntList x
Exercise Add an equals instance method to the IntList class, so that equals returns true if the IntList and the IntList have exactly the same integers in the same order and returns false otherwise. It should be true that equals is always equivalent to equals It should also be true that if then equals although the reverse should not necessarily be true.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
