Solution Review: Classes and Objects
Let’s look at the solution of the classes and objects challenge.
We'll cover the following...
We'll cover the following...
Solution: Task 1
Explanation
- Line 2: We write the
Userclass. - Line 4: We add the public property
$firstNameto theUserclass. - Line 5: We add the public property
$lastNameto theUserclass.
Solution: Task 2
Explanation
-
Line 2: We write the
Userclass with ...