Consider the following example code
class MyClass { public String var = \"base\"; public void printVar() { System.out.println(var); } }
The polymorphic behaviour of the java language works with methods and not member variables: they designed the language to bind member variables at compile time.