OOP (course 4): Static methods, Namespaces, Exceptions & Traits! Woh!
Unlock the power of OOP with static methods, class constants, namespaces, autoloading, magic functions, and more. Learn how to treat objects like arrays and master exception handling. Discover the benefits of traits and choose between composition and inheritance. Level up your coding skills and witness the impressive results of your newfound knowledge in this comprehensive tutorial.
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.
User Reviews
Be the first to review “OOP (course 4): Static methods, Namespaces, Exceptions & Traits! Woh!”
You must be logged in to post a review.


There are no reviews yet.