100 Days Of Solidity, Shadowing State Variables, Inherited State Variables, Learn Solidity.
the `name` state variable inside its constructor. When we call `C.getName()`, it returns the overridden value “Contract C”. Sample Code to Solidify the Concept: To reinforce our understanding, let’s explore a couple of sample code examples involving shadowing inherited state variables. Shadowing