Posted: Sat Dec 10, 2005 2:04 am Post subject: Re: advantages of classes over just functions?
Quote:
One of the main benefits of OOP is the ease with which you can translate individual business requirements into individual modules of code. Because an OOP approach enables you to model your application based on the idea of real-world objects, you can often identify the direct correlation between people, things, and concepts and equivalent classes
From php5 Book
It allows for the encapsulation of code, creating an enviroment where you can protect member objects and properties from being modified outside the class.
Now in a PHP 4.x.x enviroment it is more of a grouping of functions then anything else. _________________ Free MusicCpopServer Definition
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum