Binding of variables and methods at compile time and runtime

You can use reference variables of a base class to refer to an object of a derived class. With inheritance, the instance variables bind at compile time and the methods bind at runtime. Examine the following code: class Employee { String name = "Employee"; void printName() { System.out.println(name); } } class Programmer extends Employee { String name