Re: class? package?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you are designing with OO principles, could you give an explanation of
what is the difference classes and packages?

A class is a language construct, classes are processed/executed by php.

A package is an architectural approach - this is how you combine your code/classes.

When I was summarizing the OO principles, that question confused me:
http://phparch.cn/index.php/php/43-php-advanced-programming/170-principles-of-object-oriented-design

If you try to follow all these principles, it might take very long before you write even a line of code ;)

Take what you understand and leave the rest for later. You will become better, but will never be perfect ;)

Iv

--

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux