Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inheritance.rst #13

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/inheritance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Solidity 支持多重继承包括多态。
}


解决此问题的方法是使用超级
解决此问题的方法是使用 ``super``

调用 ``Final.destroy()`` 时会调用 ``Base2.destroy``, 因为我们在最终重写中显式指定了它。
但是此函数将绕过 ``Base1.destroy``, 解决这个问题的方法是使用 ``super``::
Expand Down