15.2.6: The Rectangle Class
Part IV
The Problem
The Problem
It tells you, "You should use the instance variables in your functions."
The Solution
The Solution
You need to calculate the sides of the rectangle like so:
(2 * length) + (2 * width)
Part IV
It tells you, "You should use the instance variables in your functions."
You need to calculate the sides of the rectangle like so:
(2 * length) + (2 * width)