4
mapping(uint256 => address) owner;

What is the default visibility of this variable?

2 Answers 2

4

If visibility is not specified then by default it is an 'internal' variable . So , the owner mapping above is internal .

2
2

it's internal, meaning that only functions from derived and internal contract can use it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.