aboutsummaryrefslogtreecommitdiffstats
path: root/docs/contracts.rst
diff options
context:
space:
mode:
authorLuca Ban <mesqueeb@users.noreply.github.com>2018-05-09 18:28:55 +0800
committerGitHub <noreply@github.com>2018-05-09 18:28:55 +0800
commitbb7a393756bb0f7513287b0162e517a809fe0007 (patch)
tree2a5b6613632f71c823db4260f47d2e809f0c83de /docs/contracts.rst
parent87826a7d87991f9c054d27def6fb9a79eb18e3ae (diff)
downloaddexon-solidity-bb7a393756bb0f7513287b0162e517a809fe0007.tar.gz
dexon-solidity-bb7a393756bb0f7513287b0162e517a809fe0007.tar.zst
dexon-solidity-bb7a393756bb0f7513287b0162e517a809fe0007.zip
Extra line of explanation on Abstract contracts.
And why they're useful.
Diffstat (limited to 'docs/contracts.rst')
-rw-r--r--docs/contracts.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 3576cd7b..61b757e8 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -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's a way for the designer of the Abstract contract to say "any child of mine MUST implement this method".
+
.. index:: ! contract;interface, ! interface contract