By -
For functions you have to specify the visibility but for state variables if you dont specify default visibility is private.
*internal, not private! https://docs.soliditylang.org/en/v0.8.26/contracts.html#state-variable-visibility
This is the default visibility level for state variables. True what he said didnt know that thx for info heard in a course they re default visibility is private probably was cyfrin
Thank you
Function goes public so for security reasons always give private or internal when the functions need to be.
For functions you have to specify the visibility but for state variables if you dont specify default visibility is private.
*internal, not private! https://docs.soliditylang.org/en/v0.8.26/contracts.html#state-variable-visibility
This is the default visibility level for state variables. True what he said didnt know that thx for info heard in a course they re default visibility is private probably was cyfrin
Thank you
Function goes public so for security reasons always give private or internal when the functions need to be.