Earn While Learning Web3 Programming>> Start Here FREE!!!
Solidity Developers Forum
1
Posts
1
Users
2
Reactions
500
Views
1
25/10/2021 12:34 pm
Topic starter
What Is Constructor in Solidity?
NOTE:
This Is An Exercise From Our FREE Smart Contract Development With Solidity For Beginners Course (If you have not enrolled yet, you can join the course totally for FREE).
1 Answer
1
25/10/2021 12:36 pm
Topic starter
Constructor in Solidity is used to initiate the state of a Smart Contract at the point of deploying it to the Blockchain.
Constructor code block only run ones and after been deployed it does not work anymore.