Object-Oriented Solidity·Lesson 5 of 23·15 min
Inheritance, Interfaces, and Abstract Contracts
This lesson is for enrolled learners
The concept Solidity supports single-chain multiple inheritance using C3 linearization: contract Dog is Animal, Named { ... } lifts every public/internal member of Animal and Named into Dog. A base function marked virtual can be overridden by a derived contract using override; if two parents define the same function, the child must explicitly resolve the conflict by listing all parents……
Enroll to continue Already enrolled? Sign in