In C++ I rather use function pointer to enable special behavior to be selected at runtime in my programme. In Java there are no function pointers and I am obliged to use either the strategy pattern or reflection (or another pattern).
What is the best way to implement this operation especially in C++?
Aucun commentaire:
Enregistrer un commentaire