I have crerated a class for handling the graphics of my OS including textmode, VGA and VESA.
According to my thaughts:
* I have created a base class 'ABC' (won't disclose the name

* Created three derived classes VGA, Console, VESA.
* Each is derived in public mode from 'ABC'.
Now my question is that how should I implement the desired functions in the classes. I am not talking about the code. I am talking about the implementation of function in a modularized way. i.e.
* Which class should have the function for mode changing.
* Which class should contain the information about the current state.
* Whether I should not include text mode driver in this implementation and use it solely for graphics mode.
Suggestions are welcome.