Extra line of explanation on Abstract contracts.

And why they're useful.
This commit is contained in:
Luca Ban 2018-05-09 19:28:55 +09:00 committed by GitHub
parent 87826a7d87
commit bb7a393756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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