100 Days Of Solidity, Shadowing State Variables, Inherited State Variables, Learn Solidity.
Modifier: contract E is A { constructor() { name = "Contract E"; } modifier overrideName() { name = "Modified Name"; _; } function getName() public view overrideName returns (string memory) { return name; } } In this example, contract E overrides the `getName()` function inherited from contract A.