Introduction to OOP
Chapter 16: Overriding :
More Efficient Versions in class True
In class True we know the left argument is true, and therefore can make more efficient algorithms.
" class True " & right ^ right | right ^ true
Similar code in class False. These are faster than the code in the parent class, but have the same effect.
, Slide 11