Solution Review: Inheritance
Let's look at the solution of the Inheritance challenge.
We'll cover the following...
We'll cover the following...
Solution
Explanation
-** Line 2:** We create a User class with a protected property named $username. The User class also contains a public setter method named setUsername(), which is used to set the value of the $username ...