What are some potential efficiency disadvantages of having very shallow inheritance trees, that is, a large set of classes, A, B, C, and so on, such that all of these classes extend a single class, Z?
The collections.Sequence abstract base class does not provide support for comparing two sequences to each other. Modify our Sequence class from Code Fragment 2.14 to include a definition for the _ _eq_ _ method, so that expression seq1 == seq2 will return True precisely when the two sequences are element by element equivalent.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here