...
/Solution Review: Implement Rectangle Class Using Encapsulation
Solution Review: Implement Rectangle Class Using Encapsulation
This review provides a detailed explanation for the 'Implement the Rectangle Class using the Concepts of Encapsulation' challenge.
We'll cover the following...
We'll cover the following...
Solution #
Explanation
-
In lines 3 - 4, we defined the initializer for the class and declared private properties –
__lengthand__width– in it. -
In line 7 ...