[Solved] Delegation in C++

First, let’s use a typedef for the function: typedef int agechanger(int); this makes a new type, agechanger, which will be used in code for passing the function instances around. Now, you should give your person class a proper constructor, and properly incapsulate the age field providing a public getter. Then add a method that accepts … Read more