Question OOP-POLY-0052
MediumWhat does the C++ keyword 'override' do?
- A.
Makes a function static
- B.
Makes a function virtual
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Polymorphism question
What does the C++ keyword 'override' do?
Makes a function static
Makes a function virtual
Sign up free to see the answer and a step-by-step explanation.
Prevents overriding
Makes the compiler check that the function really overrides a virtual base function