Overview


In the previous chapter we developed higher order functions that receive other functions as parameters.

We did it by writing standalone (free) functions.

In this chapter we'll add a class named QueryArray.

We'll then transform the functions into instance methods on the class, so we have proper oo.

Objectives


The objective is to learn how object oriented programming (specifically classes) and functional programming play (work) together.

Prerequisites


For reference while doing drills: