OOP (course 4): Static methods, Namespaces, Exceptions & Traits! Woh!


What you'll be learning

Finally, we can really unload and see all the cool OOP stuff that we haven't covered yet. These are the last missing pieces that are standing between you and understanding any OO code you meet.

  • Static methods
  • Class constants
  • Namespaces
  • Autoloading (RIP require statements)
  • __toString & the other magic functions
  • Treat that $object[1] like an array (ArrayAccess)
  • Throwing and catching a baseball Exceptions
  • Traits! Horizontal code re-use
  • Composition Versus Inheritance: Dressing your classes for success

Finally, you're going to start to see some serious pay-off from these new, crazy OO skills you've got. In this tutorial, OO is here to impress us. Dig in.

Your Guides

Ryan Weaver Leanna Pelham

Buy Access

Questions? Conversation?

  • 2016-11-06 Hakim Ch

    I agree with you, specialy abstract class :D

  • 2016-10-15 weaverryan

    Cheers Christophe! Thanks for dropping us this really nice comment - it means a lot :)

  • 2016-10-14 Christophe Lablancherie

    These four courses are so magical :D I understand some concept that i've never seen before because i'm learning as (as many person i think) self-educated so, thank's a lot and keep going to do some good stuff like that :p (And i think i'm improving my english :p)

  • 2016-08-11 Gayan Ramya Kumara

    A good stuff .Thanks

  • 2016-06-21 Victor Bocharsky

    Hey, Sander!

    Haha, it's awesome! We'll notify you by email if you hit the "Notify me" button at the top right of this page.


  • 2016-06-21 Sander de Wijs

    Can't wait for this course, I really enjoyed the previous three!

  • 2016-06-20 Victor Bocharsky

    Thank you, Euclides!

  • 2016-06-20 Euclides Cohen

    Nice! Looking forward for this one!

  • 2016-05-31 weaverryan

    Hey there!

    This will be out in late June - so 3-4 weeks from now :). If you hit the "Notify me" button at the top right of this page, we'll send you a one-time email when it comes out.


  • 2016-05-30 Irfan

    when this course will be available ?