RE: [PHP] when is OOP a good choice?
| From: | Le Yang | Date: | Wed, 12 Feb 2003 21:14:27 +0000 |
| Subject: | RE: [PHP] when is OOP a good choice? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135369@lists.php.net to get a copy of this message | ||
Object oriented programming in php has better logic thus is more
suitable for more complex jobs. It also makes maintenance easier,
although you have to write a bit more code
-----Original Message-----
From: anders thoresson [mailto:listor@thoresson.net]
Sent: Wednesday, February 12, 2003 3:50 PM
To: php-general@lists.php.net
Subject: [PHP] when is OOP a good choice?
I've just started to read about - and will soon try to write - object
oriented code. I think I've got the basics both from the PHP-books I
have,
and from various sources on the web.
But nowhere have I read a good explanation to two of my questions:
1. What are the main benefits from OOP?
2. When is OOP a good choice for a PHP script, and when is ordinary
functions a better call?
--
anders thoresson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php