Multiple choice technology programming languages

Is instance variables are overriden?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Instance variables are not overridden - they are hidden. When a subclass declares a variable with the same name, it shadows the parent's variable rather than overriding it. Only methods are truly overridden in polymorphism.