Extend Abstract Classes

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:04
    Here's the really beautiful thing about abstract classes:
  • 0:07
    You may create some of these
  • 0:09
    because you have a situation similar to the one
  • 0:11
    we've been working on in this project,
  • 0:13
    or you may be using someone else's code
  • 0:16
    like a third party library that you downloaded
  • 0:18
    via the Composer package manager.
  • 0:20
    You might even read in that library's documentation
  • 0:24
    that if you want to create a new ship class
  • 0:26
    you just need to extend AbstractShip.
Loading ...