Ethereum development - Visibility modifiers - Notes 3

in #ethereum6 years ago

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.


Sort:  

Congratulations @hvonsteemit! You received a personal award!

1 Year on Steemit

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Thank you so much for sharing this amazing post with us!

Have you heard about Partiko? It’s a really convenient mobile app for Steem! With Partiko, you can easily see what’s going on in the Steem community, make posts and comments (no beneficiary cut forever!), and always stayed connected with your followers via push notification!

Partiko also rewards you with Partiko Points (3000 Partiko Point bonus when you first use it!), and Partiko Points can be converted into Steem tokens. You can earn Partiko Points easily by making posts and comments using Partiko.

We also noticed that your Steem Power is low. We will be very happy to delegate 15 Steem Power to you once you have made a post using Partiko! With more Steem Power, you can make more posts and comments, and earn more rewards!

If that all sounds interesting, you can:

Thank you so much for reading this message!