4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

Ethereum development - Visibility modifiers - Notes 3

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.


2 upvotes $0.00

Replies (2)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: