Ethereum development - Visibility modifiers - Notes 3

Words
67
Reading
1 min
Listen
Play
8y

ethereum-notes.jpeg


Private - it's only callable from other functions inside the contract

Internal - is like private but can also be called by contracts that inherit from this one. You can see it as similar to "protected" in other languages

External - can only be called outside the contract. For example using the web3.js or from another contract

Public - can be called anywhere, both internally and externally.


Ethereum development - Visibility modifiers - Notes 3 | Ecency