mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-12-25 13:11:59 -05:00
Create solidity-concepts.md
This commit is contained in:
parent
d9882d0eb7
commit
9e2b9699d1
1 changed files with 12 additions and 0 deletions
12
solidity-concepts.md
Normal file
12
solidity-concepts.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
## Solidity Concepts
|
||||
|
||||
<br>
|
||||
|
||||
### 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.
|
||||
|
||||
<br>
|
||||
|
||||
### Reentrancy
|
||||
Loading…
Add table
Add a link
Reference in a new issue