Re: class constructor & polymorphism
| From: | Josip Dzolonga | Date: | Fri, 08 Apr 2005 11:50:45 +0000 |
| Subject: | Re: class constructor & polymorphism | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-212632@lists.php.net to get a copy of this message | ||
silverio.di@qem.it wrote:
Hi to all, I'm a C++ programmer and I've to convert some simple classes from C++ to PHP. My toolbar_button class must have two or more constructors so I ask you if this is possible with PHP:You can't overload a constructor, I mean a function in PHP. Maybe extending two classes from the base would be a good work-around. Hope this helps, -- Josip Dzolonga http://josip.dotgeek.org jdzolonga[at]gmail.com