O'Reilly logo

PHP 5 Advanced: Visual QuickPro Guide by Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7. Advanced OOP

Chapter 6, “Basic Object-Oriented Programming,” covers the fundamental concepts of OOP in PHP. Those concepts include: defining a class, creating an object, accessing class attributes (variables) using $this, creating constructors, and creating destructors. A fair amount of theory is also discussed there, as that’s half the OOP battle. Complete comfort with the contents of that chapter is a prerequisite for this one.

Here, things get more advanced (hence the chapter title!), really getting into the more abstract aspects of OOP. Again, ample time will be given to theory. Almost all of the dozen-ish topics discussed herein involve inheritance. Fully understanding inheritance is crucial. Some of the topics get to be rather esoteric, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required