Lecture 19 continuted: More Visitors
October 3, 2012Ambient temperature: 74.4oF Concepts Dr. Wong demonstrates the visitor design pattern: The HostA-HostB-HostC visitor pattern from last class’ lecture. Linked Lists with counting, summation, copying, and mapped addition. The visitor pattern is an example of “double dispatch:” First the visitor object is dispatched to a host object, then a particular method is dispatched from the […]