Reply to Re: [PHP] class constructor & polymorphism

Your name:

Reply:


Posted by Josip Dzolonga on 04/08/05 14:50

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация