Solution Review: Static Methods & Properties and Traits
Let's look at the solution of the Static Methods & Properties and Traits challenge.
We'll cover the following...
We'll cover the following...
Solution
Explanation
- Line 2: We write a
Userinterface. - Line 4: We write the
Writingtrait, which has an abstract method namedwriteContent(). - Lines 8-13: We write an
Authorclass that implements the