Replies: 1 comment
-
@0xClouds Patrick uses the Chainlink style guide for naming the variable but outside contract we just simply want to show variables names like the should be in all languages style that is why he make them private and create a function for them. |
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.
-
From what I understand public variables already create a getter function for that variable, where private variables do not. So in the course we then create getters. So what purpose do private variables have if contracts can not modify public variables anyway and only create a new instance of it even if they inherit the original contract?
Beta Was this translation helpful? Give feedback.
All reactions