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