Question: Consider the code snippet below: ` ` ` class ChoiceQuestion : public Question { public: void display ( ) override; } ; ` ` `
Consider the code snippet below:
class ChoiceQuestion : public Question
public:
void display override;
;
What is the meaning of the override in the last line?
I. It forces this function to override Question: : display
II It indicates this function should override Question: : display and will cause a compiler error if it does not.
III. It is a syntax error in some compilers.I onlyII onlyIII onlyII and III
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
