You are here: Re: How to do "friend class" in php? « PHP Programming Language « IT news, forums, messages
Re: How to do "friend class" in php?

Posted by Harrie Verveer on 07/18/07 09:35

Check out the discussion here: http://bugs.php.net/bug.php?id=34044

Last comment:
"Long ago we decided against 'friend' declarations."

Kind regards,

Harrie Verveer
---
http://www.ibuildings.nl/blog/authors/Harrie-Verveer


Willem Bogaerts wrote:
> There is no "friend" or package visibility. Sorry.
>
> Yarco wrote:
>> In c++ we could modify the private variable in a class use friend
>> keyword.
>> How could it be done in php?
>>
>> class YourBag
>> {
>> int money;
>>
>> friend class Thief; // friend?
>> };
>>
> Best regards

 

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

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