Skip to main content

Practice · 5 of 5

Field shadowing across the hierarchy

CHALLENGE
Difficulty: intermediate+25 XP

Derived declares its own v, shadowing Base's. Complete baseV() so it returns BASE's v using the lesson's mechanism.

Back to lesson: Practice: Inheritance lab