Constructor
contract SimpleConstructor {
uint public x;
constructor(uint _x) public {
x = _x;
}
}Deployment
Inheritance
1. Directly in the inheritance declaration
2. Through the derived constructor
Payable Constructor
Last updated