- Make sure you have the calc resource. If necessary, see the Resources import webpage.
- Enter the code below. The Inherited attributes option inherited from the Options menu displays fields inherited from superclasses. What are the specific fields and inherited from an instance of Nombre? from an instance of Somme?
- Display the evolution of the call stack in step-by-step mode. This stack shows, through the this pointer, the different receivers used to call the valeur() function. What are the different valeur() functions called?
- Add the statements below. Note the static type of the e1 variable . Both valeur() function calls are on the same variable. And yet, what do you see when running?
- The choice of the good valeur() function is done at runtime. This mechanism has the dynamic link or dynamic binding name. The example below shows another example.