## 21.8 Software Frameworks (cont.)

>     class wxWindow
>     {
>     public:
>        . . .
>        // Pure virtual member function
>        virtual void OnPaint(wxPaintEvent& event) = 0;
>        virtual void OnMouseEvent(wxMouseEvent& event);
>        . . .
>     };

>     void wxWindow::OnMouseEvent(wxMouseEvent& event)
>     {
>        // Default behavior, do nothing
>     }

prev |top |next