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

Posted by Yarco on 07/18/07 09:16

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?
};

 

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

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