Re: class? package?

From: Date: Tue, 10 Jun 2008 10:32:05 +0000
Subject: Re: class? package?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-275173@lists.php.net to get a copy of this message
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 --

« previous php.general (#275173) next »