You are making a Quiz game. The Quiz class inherits from the Game base class. Both classes have constructors, which output a S
You are making a Quiz game. The Quiz class inherits from the Game base class. Both classes have constructors, which output a Start message. Create destructors for each class, which will output "Game Over" in the Game class, and "Quiz Over" in the Quiz class, so that when the program executes, it outputs: Game Started Quiz Started Quiz Over Game Over #include <iostream> using namespace std; class Game { public: Game() { cout<<"Game Started"<<endl; } ~Game() { cout<<"Game Over"<< endl; } }; class Quiz: public Game { public: Quiz() { cout<<"Quiz Started"<<endl; } ~Quiz() { cout<<"Quiz Over"<<endl; } }; int main() { Quiz q; } my code doesnt seem to work, an error is : timeout: failed to run command usercode/a.out :