Solution Review: Abstract Classes and Methods
Let's look at the solution of the Abstract Classes and Methods challenge.
We'll cover the following...
We'll cover the following...
Solution
Explanation
-
Line 2: We create a
Userabstract class with a protected$usernameproperty. -
Line 5: We add an abstract
stateYourRole()method in theUserclass. ...