O'Reilly logo

PHP Advanced and Object-Oriented Programming: Visual Quickpro Guide, Third Edition 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

8. Using Existing Classes

The preceding four chapters discuss object-oriented programming, discussing both syntax and theory. The majority of the examples in those chapters tend to be as much demonstrative as practical (e.g., the Rectangle, Square, Shape, and Triangle classes are useful, but only if you’re doing geometric work). Philosophical examples are best for teaching OOP, I believe, but real-world object-oriented programming hammers the points home. And nothing best demonstrates real-world OOP than using some of the many existing classes created by other developers.

All of the examples in this chapter are based ...

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