100 Days Of Solidity, Shadowing State Variables, Inherited State Variables, Learn Solidity.
is A { constructor() { name = "Contract C"; } // C.getName returns "Contract C" } Contract A defines a state variable `name` with an initial value of “Contract A”. It also provides a function `getName()` that returns the value of `name`. Contract C inherits from Contract A and correctly overrides