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(+) (limited to 'docs/contracts.rst') 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