Re: [PHP4BETA] Constructors
| From: | Andi Gutmans | Date: | Fri, 21 Apr 2000 07:39:57 +0000 |
| Subject: | Re: [PHP4BETA] Constructors | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13857@lists.php.net to get a copy of this message | ||
PHP doesn't have polymorphic functions and methods. In general, it is not a full-fledged OOP language but just has some of the basics which allows you to nicely package functionality.
Andi
At 11:03 PM 4/20/00 -0700, Szii wrote:
class me { function Me() {--- Andi Gutmans <andi@zend.com> http://www.zend.com/echo "mememe.";} function Me($someoneelse) {echo "Not me.";} } $classobj = new me(); #will call Me($someoneelse) // output Not me. Anyone else seen this? Doesn't look like the polymorphism's working quite right for constructors... -Szii -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net