...

/

Challenge: Interfaces

Challenge: Interfaces

Write a class and make it implement multiple interfaces along with inheritance.

We'll cover the following...

Task

  • Create a User class with a protected $username property and methods that can set and get the $username.
  • Create an Author interface with two abstract methods that can give the user an array of authorship privileges. The first method is setAuthorPrivileges() with the parameter $array, and
...