Java Inheritance - instance variables overriding

java

Solution

Because inheritance is intended to modify behaviour. Behaviour is exposed through methods, and that's why they can be overridden.

Fields are not behaviour but state. You don't need to modify that, nor the private methods employed by the superclass. They are intended to allow the superclass to do it's job.

Problem

Why are Instance variables of a superclass not overidden in Inheritance ?

Original source