You are here: Re: Classes without instances « PHP Programming Language « IT news, forums, messages
Re: Classes without instances

Posted by Thomas Mlynarczyk on 11/01/77 11:32

Also sprach Oli Filth:

> However, semantically, static variables imply variables that represent
> the state of the class as a whole, not one particular instance of it.

So, using a non-instantiated class like an object would in a way be the
equivalent of using <big> instead of <h1> in HTML?

> An example of a good use of static variables might be instance
> counting;

I could use static variables for information that is common to all
objects/instances?

Thanks for the clarification!

Greetings,
Thomas

 

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

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