Question · Blockchain and Web3 course · Module 6: Solidity Basics
Constructor
When does the constructor function execute in Solidity?
Answer options
- Every time the contract is called
- Only once, during the contract's deployment
- Automatically every hour
- It's never executed
You can check the correct answer by solving this task in the CodeWorlds game.