Start learning →

What term describes a local variable masking an outer one?

AMethod overriding
BVirtual dispatch
CThread decoupling
DVariable shadowing
Answer & Solution
Correct answer: D. Variable shadowing
Masking an outer variable with an identically named inner variable is shadowing.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →