Solution Review: Magic Method
Let's look at the solution of the Magic Method challenge.
We'll cover the following...
We'll cover the following...
Solution
Explanation
- Line 2: We create a
Userclass with two private properties,$firstNameand$lastName. - Line 6: We add a