Memory heap

holmes4:

  1. the data for that instance of the class eg servo1, servo2 which are created on the heap

  2. pointers to the instance data on the heap. The pointers are created on the stack.

Not necessarily. Both of those would depend on where the data was created.

There is a third piece of memory: global memory, which is where static variables go. The data may well be there.