It is very important, that you always initialize the global variable to point to the correct class instance. You can write arbitrary other classes like TClassB and use them with DoItB as long as these other classes provide the necessary functions. It is not a good solution because the use of a global variable is very dangerous and could cause serious errors. Function Pointers 5. All code pieces were highlighted using the free lore's source converter .
All trademarks are the sole property of their respective owners.
I do NOT promote, speak in the behalf of, advertise or work for ANY computing, news or internet profit business.