You are here: Re: Sealing a method in a php class « PHP Programming Language « IT news, forums, messages
Re: Sealing a method in a php class

Posted by Janwillem Borleffs on 05/31/06 21:06

Areric wrote:
> In PHP4 is there a way to mark a method in a class as non-overridable
> (i.e. sealed or final). From what i understand, by default all methods
> are virtual.
>

Indeed, this is not supported by PHP 4;

> What about PHP5?
>

By using the "final" keyword:

final function Foo() {}


JW

 

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

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