Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Instruction
Recap: A Better Way With Setter Methods
Switching to a Setter Method
To refactor our current methods to use a setter method for the out property instead, we have to make a few changes.
Firstly, the out property initialized in the constructor method needs to be changed to a “backing property”, _out.
The _out property looks a little funny because it has an underscore before the word “out”. The underscore indicates that it's a backin...