You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Act 19 - Extending Classes? Not sure about this one. The current implementation of BigInteger.equals(Object x) doesn't seem to check precisely that the paramter is specifically a BigInteger (i.e. it would permit an instance of a subclass, as explored in this activity).
See some discussion in CS 159 planning (sorry to the folks who aren't JMU CS affiliated for posting the private link). It seems that we should likely:
equals
methods that@Override
Object.equals(Object obj
Activities affected:
BigInteger.equals(Object x)
doesn't seem to check precisely that the paramter is specifically aBigInteger
(i.e. it would permit an instance of a subclass, as explored in this activity).The text was updated successfully, but these errors were encountered: