Challenge: Static Methods & Properties and Traits
Create an interface and traits, and then use them in child classes.
We'll cover the following...
We'll cover the following...
Task
- Write an interface named
User. - Write a trait named
Writingthat contains an abstract methodwriteContent(). - Add the
Author,Commentator, andViewer