Skip to content

LESSON 3 override/virtual (3:30:15) #5057

Answered by Krr1ss
emrhn33 asked this question in Q&A
Discussion options

You must be logged in to vote

The +5 was just an example. Why not write another function? Cuz of gas, in this case. As for why the need to override the function, it's extremely simple. You wanna use a function from a parent contract but you don't wanna pay a dollar gas more, nor do you want to use that same function, but want a few changes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emrhn33
Comment options

Answer selected by emrhn33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants