Skip to main content

Practice ยท 1 of 1

Rectangle Member Function

Given the Rectangle struct below, implement the member function scaled(factor) returning a NEW Rectangle scaled on both sides (original untouched).

Difficulty: beginner

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