Why put the word "Virtual" If it works without it?
What does it mean "Virtual" ?
Code:#include <wx/app.h>
#include <wx/frame.h>
class FrmMain: public wxFrame {
public:
FrmMain(): wxFrame(NULL, wxID_ANY, "2019") {
}
};
class MyProgram: public wxApp {
// virtual bool OnInit() { // Why put the word "Virtual" If it works without it?
bool OnInit() {
(new FrmMain)->Show();
return true;
}
};
wxIMPLEMENT_APP(MyProgram);