Practice · 1 of 1
Rectangle Member Function
CHALLENGE
Difficulty: beginner+25 XP
Given the Rectangle struct below, implement the member function scaled(factor) returning a NEW Rectangle scaled on both sides (original untouched).
Press Submit to check your solution.
Back to lesson: Practice: Struct Practice: Models That Read Like the Domain