Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Utah PHP Users Group:
Creating Objects
Jul 19, 2005 @ 11:19:07

In a continuation of their "working with OOP in PHP" series, the latest article has been posted on the Utah PHP Users Group site - Creating Objects.

In the previous three object oriented programming articles written for jacwright.com, we introduced object oriented programming, spoke of thinking about a system object oriented, and discussed the importance of planning, even if only in one's head. The next two articles, Creating Objects and Reusing Objects, delve into the meatier subject of writing objects. We will be discussing how to implement the plans we've made and the systems we've conceptualized. Without these principles, object oriented programming can become a mess instead of a blessing.

He goes on to talk about encapsulation, extending the objects, and then finally creation of the objects. The key to it all that he tries to get across, really, is just planning. Don't just start writing up your code and hope things fall into place. When creating objects (or any other code), it's always best to have a plan before setting out...

tagged:

Link:


Trending Topics: