next up previous contents index
Next: Multiple Inheritance Up: An Example Previous: Classes   Contents   Index


FOO is next told to imagine that the behavior of . is defined by the behavior of DOT. When hmm is pondered in FOO, the display of the variables is done according to the definition of DOT, with leading zeros and a trailing carriage return. The same thought is also pondered in BAR, which has not had its understanding of . changed. BAR displays the variables in the usual fashion. This demonstrates the locally defined operator overloading capability provided by dreams.

Robert J. Brown