Constructors
| From: | Szii | Date: | Fri, 21 Apr 2000 06:03:31 +0000 |
| Subject: | Constructors | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-13851@lists.php.net to get a copy of this message | ||
class me
{
function Me()
{
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