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

Reply via email to