20: Constructor
contract SimpleConstructor {
uint public x;
constructor(uint _x) public {
x = _x;
}
}contract SimpleConstructor {
uint public x;
string public str;
constructor(uint _x, string memory _str) public {
x = _x;
str = _str;
}
}Last updated