Callbacks

  • We can replace the critical decision point in the function with a function parameter
  • This function parameter is often called a callback
  • The generic function uses it to "call back" and check on how to do its critical decision point

13 / 21