diff options
author | chriseth <chris@ethereum.org> | 2018-05-16 16:21:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 16:21:33 +0800 |
commit | 54839fdffbc32f1f918790b1e09143a410bd1c80 (patch) | |
tree | f4d38ac8b736a7bc2004124187f2d54fea6f785f | |
parent | 03c248440770202bb67b4818ff86608fd6a7789d (diff) | |
parent | e670004b1f52819d16d5fc434cfe9a338dc389ca (diff) | |
download | dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.tar dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.tar.gz dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.tar.bz2 dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.tar.lz dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.tar.xz dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.tar.zst dexon-solidity-54839fdffbc32f1f918790b1e09143a410bd1c80.zip |
Merge pull request #4101 from mesqueeb/patch-2
Extra line of explanation on Abstract contracts.
-rw-r--r-- | docs/contracts.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst index 487e80ae..b73fe2ca 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 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 |