Skip to main content

Practice · 3 of 4

Aliased object state

CHALLENGE
Difficulty: intermediate+25 XP

In demo, x and y are two names for ONE P object. Trace the three bumps on the shared row, predict what demo() returns, and keep the implementation consistent with your trace (fix demo if your hand trace disagrees with it).

Back to lesson: Practice: Tracing lab