Overriding functions #4815
AAKASHXOTHEWEEKND
started this conversation in
General
Replies: 1 comment
-
@AAKASHXOTHEWEEKND This is the syntax which we have to follow in order to tell solidity that this(virtual) function can be overridden and same this(overridden) function is overriding from the parent contract. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why should we write virtual in the parent contract for a function to be overrided by the same function of it's child contract ?
Beta Was this translation helpful? Give feedback.
All reactions