2
mapping(uint256 => address) owner;

What is the default visibility of this variable?

2 Answers 2

1

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

2
1

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, privacy policy and cookie policy

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