mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7974 from ethereum/updateInterfaces
[DOC] Update interfaces
This commit is contained in:
commit
104a8c59f5
@ -32,6 +32,11 @@ Interfaces are denoted by their own keyword:
|
||||
|
||||
Contracts can inherit interfaces as they would inherit other contracts.
|
||||
|
||||
All functions declared in interfaces are implicitly ``virtual``, which means that
|
||||
they can be overridden. This does not automatically mean that an overriding function
|
||||
can be overridden again - this is only possible if the overriding
|
||||
function is marked ``virtual``.
|
||||
|
||||
Types defined inside interfaces and other contract-like structures
|
||||
can be accessed from other contracts: ``Token.TokenType`` or ``Token.Coin``.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user