100 Days Of Solidity, Shadowing State Variables, Inherited State Variables, Learn Solidity.
A and shadows it with a new value. Although the variable type has changed to `uint256`, the concept of shadowing remains the same. Contract D assigns the value 24 to `number` inside its constructor. Consequently, when we call `D.getNumber()`, it returns the overridden value 24. 2. Shadowing with