Re: Method Overloading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I have class(say Z) that have different function. The functions are
different in just there parameter list or you can say type(though i know
php is typeless language, but this is just to clarify the problem ) the
rest of the implemetation of functions are same e.g
>
> A(param1, param2, param3)
>
> and
>
> B(param1, param2, param3)
>
> Now i want to Overload these two method i.e. the user of "Z" class
just have only single interface to achieve the required functionality.

Does this help?

http://www.zend.com/manual/function.overload.php

or this maybe:

http://www.zend.com/manual/ref.overload.php#overload.examples


cheers,

        Mark




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<!-- SpaceID=1705006764 loc=TM noad -->

--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux