|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Ruby |
class A < Abstract Object
...
end
class B < AbstractObject
...
end
a = A.new
b = B.new
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 c.to_s, "\n"prints the contents of the container on the console.
a = Association.new(3, 4) b = Association.new(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.