Reply to Re: Classes and objects - please explain

Your name:

Reply:


Posted by lawrence k on 11/02/06 23:47

David wrote:
> A class is more specific name for the generic idea of an object.

Possibly you meant the opposite of this? An object is one specific
instance of a class. A class is a template for making certain kinds of
objects, but each object made from that class is its own specific
variable.






>
> Basically, it allows you to put code and data into a container and
> tell the container to act on something and give me back a response. A
> real example is a remote control which accepts the pressing of the
> "power" key and then tells the TV to turn on/off.
>
> YOu do need to get a basic book on object design if you plan to use
> classes.
>
> On 2 Nov 2006 07:17:31 -0800, cyktor@hotmail.com wrote:
>
> >Hey all,
> >
> >PHP is my first serious programming language (have some exp w/
> >javascript), so this notion of classes and objects confuses me. What's
> >a good way for me to understand this?
> >
> >-cyktor

[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

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