mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4101 from mesqueeb/patch-2
Extra line of explanation on Abstract contracts.
This commit is contained in:
commit
54839fdffb
@ -1145,6 +1145,8 @@ Example of a Function Type (a variable declaration, where the variable is of typ
|
||||
|
||||
Abstract contracts decouple the definition of a contract from its implementation providing better extensibility and self-documentation and
|
||||
facilitating patterns like the `Template method <https://en.wikipedia.org/wiki/Template_method_pattern>`_ and removing code duplication.
|
||||
Abstract contracts are useful in the same way that defining methods in an interface is useful. It is a way for the designer of the abstract contract to say "any child of mine must implement this method".
|
||||
|
||||
|
||||
.. index:: ! contract;interface, ! interface contract
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user