Merge pull request #8808 from ethereum/documentation-abstract

Note on abstract contract about overriding implemented functions
This commit is contained in:
chriseth 2020-05-01 13:33:55 +02:00 committed by GitHub
commit b627f3ab85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,3 +52,8 @@ facilitating patterns like the `Template method <https://en.wikipedia.org/wiki/T
Abstract contracts are useful in the same way that defining methods 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 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". abstract contract to say "any child of mine must implement this method".
.. note::
Abstract contracts cannot override an implemented virtual function with an
unimplemented one.