Difficulty -
Medium
Total Plays - 2
Allowed Time - 10 sec
Best time - 3.892 sec
Which Solidity keyword prevents state variable shadowing?
#A
#B
#C
#D
Explanation:
The override keyword forces explicit acknowledgment when a derived contract replaces a parent variable or function. This prevents accidental state variable shadowing in inheritance hierarchies, which can otherwise lead to subtle storage corruption bugs.