Object class contracts.
As it happens, Liskov's implementation of
IntSet class (see figure 5.10, page 97)
IntSetfrom the in-class exercise. Implement a subtype of IntSet to demonstrate the problem. Your solution should include appropiate executable code in the form of JUnit tests.
clone()for IntSet. Again, give appropriate JUnit tests.
equals(). As discussed in the class exercise, the standard recipe is not appropriate in this (unusual) case.