Function Overriding
Contracts Inheritance
Contracts can inherit from other contracts. This is a widely used functionality, and although it helps organize code, it may help to hide problems with variables and functions. Built-in functions can be overridden, as the example below shows.
The inheritance graph can also mislead developers. If you have multiple inheritance, Solidity will inherit one by one starting from the right. Best practice is to linearize the structure to prevent unwanted behavior.
Last updated