I want to be able to pass a function as a parameter to another function within a class.
In the example below, I want to pass 'Function_2' or 'Function_3' into 'Function_1' so that either function can be called from 'Function_1' under the formal parameter 'Function'.
In the constructor of the class, I have assigned 'name' with a pointer to 'Function_2' and would like to pass this into 'Function_1' and then call it from there (vice versa with 'Function_3') but I am having trouble understanding:
1). how the actual parameter should be passed from the constructor to 'Function_1'
2). what the formal parameter in 'Function_1' should be
3). how the function (formal parameter) can be called from 'Function_1'