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

Average Rating
0 out of 5 stars. 0 votes.

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”