blockchains-security-toolkit/solidity
2022-04-07 22:20:20 +04:00
..
README.md Update and rename solidity-concepts.md to solidity/README.md 2022-04-07 22:20:20 +04:00

Basic Concepts


Interfaces

  • There are at least 2 reasons why you might use inheritance in smart contract developmnet. First, it allows changes in one parent contract to be reflected in child contracts. Second, it allow you to reuse code and reduce overall program length.
  • Interfaces cannot define state variables or constructors, functions have to be external, and interfaces cannot themselves inherit from other contracts.

Reentrancy