|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
class A(Object):
...
class B(Object):
...
a = A()
b = B()
Give the sequence of methods called in order to evaluate
a comparison such as ``a < b''.
Is the result of the comparison True or False?
Explain.print str(c)prints the contents of the container on the console.
a = Association(3, 4) b = Association(3)Give the sequence of methods called in order to evaluate a comparison such as ``a == b''. Is the result of the comparison True or False? Explain.