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]
|