I have an arbitrary number of derived classes all inheriting from the same base class. These derived classes all have the same static variables and static methods, although the implementations may vary from class to class. I'm using pointers to the base class in order to interface with all these derived classes. Ex:
base pt_1 = new derived_3(); base pt_2 = new derived_5();
How do I use the appropriate static variables/methods (i.e., belonging to the right derived class) as I run through each of these pointers? It's easy to use the right methods of the object by just doing
pt->*method_name()* but I'm not sure how to access the static stuff of the right class.