We have a situation. there are 2 classes in business logic layer. These classes have multiple functions which perform Insert / Update on a table.
There is another database operation which needs to be done after each of these function execution.
Thus, wanted to know how we can enforce these to classes functions to call a call back function after their execution.
Class C1 has f1 & f2 functions. there is other class called C2 which has a afterfunc() function. We want after f1 & f2 execution afterfunc() get called.