...

/

Challenge: Abstract Classes and Methods

Challenge: Abstract Classes and Methods

Try to create an abstract class and make the child classes inherit from that abstract class.

We'll cover the following...

Task

  • Create an abstract class named User with an abstract method named stateYourRole().
  • Add a protected property named $username to the User abstract class.
...