Skip to main content

Practice · 2 of 2

Optional and Named Arguments

CHALLENGE
Difficulty: intermediate+25 XP

Implement Tag: returns "kind#count" and appends "!urgent" when urgent. Defaults: count 1, urgent false. The tests call it positionally, with named args out of order, and skipping the middle parameter. ``csharp static string Tag(string kind, int count = 1, bool urgent = false); ``

Back to lesson: Practice: Overload Resolution Practice