You are here: Re: Child construct parent « PHP Programming Language « IT news, forums, messages
Re: Child construct parent

Posted by Richard Levasseur on 08/18/06 16:29

Dikkie Dik wrote:
> An exception always has to have a message, so it enforces one by
> requiring it in the constructor's parameters. This message is kept
> safely inside, so it is effectively read-only. Not even a subclass can
> touch it.

This is incorrect:
* The properties of the PHP5 Exception class are all protected. They
can be directly accessed by derived classes, but not outside the class.
* The constructor of a PHP5 Exception defaults to (null, 0), so niether
argument is required.
* It should be noted that the methods of the exception class cannot be
overridden, they are declared 'final,' (except __toString)

See http://us2.php.net/manual/en/language.exceptions.php

 

Navigation:

[Reply to this 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

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