deploying a contract #1815
-
why the returned favouritenumber value before retrieve? |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Aug 15, 2022
Replies: 1 comment 10 replies
-
@heavidevi Here Patrick has made it a private variable and that's why he uses the convention of giving underscore _ before a variable name. And because it is private, he created a method to return it. |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
alymurtazamemon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@heavidevi Here Patrick has made it a private variable and that's why he uses the convention of giving underscore _ before a variable name. And because it is private, he created a method to return it.