From bb7a393756bb0f7513287b0162e517a809fe0007 Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Wed, 9 May 2018 19:28:55 +0900 Subject: Extra line of explanation on Abstract contracts. And why they're useful. --- docs/contracts.rst | 2 ++ 1 file changed, 2 insertions(+) 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 `_ 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 -- cgit v1.2.3 From e670004b1f52819d16d5fc434cfe9a338dc389ca Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Wed, 16 May 2018 17:03:53 +0900 Subject: fixed capitalisation and contractions --- docs/contracts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contracts.rst b/docs/contracts.rst index 61b757e8..a4a92a50 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -1145,7 +1145,7 @@ 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 `_ 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". +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 -- cgit v1.2.3