Skip to main content

Practice · 1 of 1

Default Arguments

CHALLENGE
Difficulty: beginner+25 XP

Implement greet(name, greeting="Hello") returning "<greeting>, <name>!", and a two-function overload pair volume(side) / volume(w, h, d) for cube and box.

Back to lesson: Practice: Multi-File Practice: Contracts on Paper