Friends, it is time to learn blockchain technology. Learn more and save more at the end of the bear market. In the next bull market, ETH will definitely reach 10,000 US dollars per coin. $ETH
Solidity is an object-oriented language that also has inheritance features. Contracts inherited by a contract can access all non-private members.
1. How is inheritance used in solidity and what are the inherited accesses?
In solidity, the keyword is represents inheritance, which is achieved by copying code. Solidity objects have a total of 4 visibility modifiers: external (external access), public (internal/external access), internal (internal and inherited), and private (internal access), of which external, public, and internal can all be inherited.
When inheriting a contract in solidity, if the parent contract has a constructor, you need to implement the parent contract's constructor. The following picture shows the actual code.

2. Multiple inheritance of solidity
Solidity can have multiple contracts after the is keyword. The order of parent contracts after is is important.