Solidity Output Prediction Easy +10 XP
Visibility Specifiers
Which visibility allows only the contract itself to call the function?
SolidityRead-only
function _calculate() private { ... }What is the output?
Show answer and explanation
Answer: private
private — only callable within the contract. internal — also callable by derived contracts. external — only from outside. public — anywhere.
Hint: private is more restrictive than internal.
What this challenge tests
Output Prediction in Solidity: visibility, functions.