Skip to content
Sharp

Object-oriented programming · interview question

Which of the following is not true about method overriding?

Multiple choiceEasychapter-5-curatedpremiumoopmethod-overriding
Choose one answer
Answer and explanation

Correct answer

D. The overriding method can have a different access level.

Why

The overriding method cannot have a more restrictive access level than the overridden method. It must have the same or more permissive access level.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →