December 2021
Beginner
840 pages
47h 29m
English
Function overriding (also called function hiding) occurs when multiple function definitions share the same function name, but only one of those function definitions is visible at any point in the program due to the presence of scope holes. For instance:
Here, the call to function f on line 10 binds to the outermost definition of f (starting on line 3) because the innermost definition of f (line 5) is not visible on line 10—it is defined in a nested block. The call to function f on line 7 ...