I got an unexpected demonstration of the doubledispatch pattern in real life the other day.
几天前在实际生活中我意外地得到了双重分发模式的一个演示。
3
We can use a pattern called DoubleDispatch to pull out the variation into the subclasses in such a way that we don't break existing interface contracts.