class GraphicsContext { public: virtual void DrawRectangle( int x, int y, int width, int height ) = 0; }; class X11GraphicsContext : public GraphicsContext { public: void DrawRectangle( int x, int y, int width, int height ); }