Skip to main content

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).

Back to lesson: Practice: Struct Practice: Models That Read Like the Domain