The Object as Callback Structure

In Lesson 15, “Structures and Types,” you passed a struct with function pointers into Calculator() to get it to perform a callback on the correct input and output functions from main.cpp. aController gets a set of objects from the outside and coordinates them to perform correct actions by calling their member functions. These similar patterns show another link between concepts of procedural programming and concepts of object-oriented programming.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.142.20