100 Days Of Solidity, Shadowing State Variables, Inherited State Variables, Learn Solidity.
Overriding Inherited State Variables: To correctly override an inherited state variable, we need to adopt a different approach. Let’s examine a new contract, Contract C, which inherits from Contract A, and see the proper method in action. contract A { string public name = "Contract A"; function