March 2019
Intermediate to advanced
636 pages
27h 50m
English
The constructor method is a special method for creating and initializing a contract. In solidity v0.4.23, Solidity introduced this new constructor notation and the old one was deprecated.
//newpragma solidity ^0.4.24;contract HelloWorld { function constructor() public { // ... }}//deprecatedpragma solidity ^0.4.22;contract HelloWorld { function HelloWorld () public { // ... }}
Read now
Unlock full access