mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Constructor index
For referencing, especially when it hasn't been mentioned but not discussed in detail previously e.g. here and here.
This commit is contained in:
parent
53f747b7de
commit
c5b82f7d50
@ -10,7 +10,7 @@ variables. Calling a function on a different contract (instance) will perform
|
|||||||
an EVM function call and thus switch the context such that state variables are
|
an EVM function call and thus switch the context such that state variables are
|
||||||
inaccessible.
|
inaccessible.
|
||||||
|
|
||||||
.. index:: ! contract;creation
|
.. index:: ! contract;creation, constructor
|
||||||
|
|
||||||
******************
|
******************
|
||||||
Creating Contracts
|
Creating Contracts
|
||||||
@ -20,7 +20,7 @@ Contracts can be created "from outside" or from Solidity contracts.
|
|||||||
When a contract is created, its constructor (a function with the same
|
When a contract is created, its constructor (a function with the same
|
||||||
name as the contract) is executed once.
|
name as the contract) is executed once.
|
||||||
|
|
||||||
A constructor is optional. Only one constructor is allowed, and this means
|
A ``constructor`` is optional. Only one constructor is allowed, and this means
|
||||||
overloading is not supported.
|
overloading is not supported.
|
||||||
|
|
||||||
From ``web3.js``, i.e. the JavaScript
|
From ``web3.js``, i.e. the JavaScript
|
||||||
|
Loading…
Reference in New Issue
Block a user