Reply to is this possible in PHP

Your name:

Reply:


Posted by Jeff on 07/29/07 16:53

PHP version 5.2.3
Below you see some .NET code. This is a class contain a private member
variable. For other classes to access this private variable they have to use
the public method. I'm wondering if something similar is possible with
object-oriented PHP (5.2.3) programming??

class Period
{
private double _second;
public double Seconds
{
get { return _second; }
set { _second = value; }
}
}

[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

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