Recitation 8

  1. Explain in your own words how includes and functors enable code reuse.

  2. How are functors similar to functions? How are they different? Are functors first-class?

  3. How is the extends keyword in Java (or, more generally, the inheritance feature in an OO language of your choice) similar to a functor?