php4-beta | 200004
Date: 04/21/00
- Next message: Szii: "[PHP4BETA] Classes and Sessions"
- Previous message: Andi Gutmans: "Re: [PHP4BETA] Implicit "this" pointers."
- In reply to: Szii: "[PHP4BETA] Constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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()
> {
> 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 <email protected>
>For additional commands, e-mail: php4beta-help <email protected>
>To contact the list administrators, e-mail: php4beta-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Szii: "[PHP4BETA] Classes and Sessions"
- Previous message: Andi Gutmans: "Re: [PHP4BETA] Implicit "this" pointers."
- In reply to: Szii: "[PHP4BETA] Constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

