posted 15 years ago
KB chapter7 question 6
If the below change is made,
then ,its again a error,because
Wolf class breaks because its munch(Sheep)method no longer fulfills the contract of Carnivore.
So does that mean that if one class interprets E as a particular type,then EVERY OTHER class should interpret E as the same type? ?
SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !