   A little help
  I have a class called Frame which will be used to represent frames that are both child frames or frames that are bound to the main display.  After a frame has established its OpenGL View port with the parent window it will execute its render() function, which will then execute all the OpenGL draw commands.I would like to know if in this case I should use my Frame class as a base class and inherit a render function, or if I should I pass in a pointer to a function that will be executed whenever the render command is executed?  Another way to do it is have a class called Render that is extended and the extended class is passed in as a parameter to the Frame class.All of these methods should take about the same amount of time would require some kind of v-table.  So which method would you rather see?   
  Frame* as a parameter to Render   