Skip to main content

Practice · 2 of 5

Two objects, one method

CHALLENGE
Difficulty: intermediate+25 XP

Complete Account.transferTo: on success both balances change; on failure NEITHER does. The failed branch leaving state untouched is the part being graded.

Back to lesson: Practice: Object workshop