ExamGecko
Question list
Search
Search

Question 52 - CBDE discussion

Report
Export

Function and Variable Visibility:

A.
a function that is marked as internal cannot be called by other contracts, unless the function is used by a derived contract. Private Functions cannot be called by any other outside contract and public variables are generating automaticallya getter function.
Answers
A.
a function that is marked as internal cannot be called by other contracts, unless the function is used by a derived contract. Private Functions cannot be called by any other outside contract and public variables are generating automaticallya getter function.
B.
a function that is marked as external can never be called internally. Private functions can also be called by derived contracts using inheritance. Private variables are accessible also in derived contracts.
Answers
B.
a function that is marked as external can never be called internally. Private functions can also be called by derived contracts using inheritance. Private variables are accessible also in derived contracts.
Suggested answer: A
asked 16/09/2024
Umaish Nair
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first