The callback function helps you separate the Business and View classes
It makes your code clean and professional
This video also help you
1. How to write C++ class correctly(separate header and implementation file)
2. How to build a c++ project using g++ in Windows
3. How to compile multiple source files using g++ in Windows
4. How to use typedef for defining Function type
5. Override the left-shift operator so that we can cout an object
6. How to use list in standard library
Steps
1. Define an Employee class
2. Define a EmployeMgmt class
This class has a ProcessSalary() method.
It processes salary for all employees.
for each employee processing, it calls a callback function to print out
the employee info to screen