100 Days Of Solidity, Reading State Variables, Writing State Variables, State Variables.
enables external access to the function, while the `view` modifier ensures that the function does not modify the contract’s state. By calling the `get` function, we can retrieve the current value of `num` without incurring any transaction costs. Conclusion In this article, we explored the concept