In Crypto Zombies chapter 9 we look at the difference between private and public functions in Solidity. As a solidity developer it is important to know that by default when we declare a function in Solidity, it will be public. This means that the function is exposed to the world and anyone can call and even execute that code. It is recommended to declare all functions as private until one is sure whether or not to expose the power of that code to others.
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.