Class Derived extends class Base.Base b = new Derived();where does the code start executing? Derived class or Base class?,”Even though b is declared as type Base it is created as an object of the Derived class
so all methods to it will be resolved starting with the Derived classICE”