On Mon, 2003-03-03 at 16:52, Garrett Goebel wrote:
> From: Erik B�gfors [mailto:[EMAIL PROTECTED]
> > 
> > On Sun, 2003-03-02 at 23:21, Dan Sugalski wrote:
> > > Okay, here's another shot at the semantics for objects. If folks, 
> > > especially non-perl folks, would look this over and chime in, I'd 
> > > much appreciate it.
> > > 
> > > 
> > > Objects have (all optional):
> > > 
> > > *) Properties
> > > *) Methods
> > > *) Attributes
> > 
> > Can you give a clear example of what the difference is between
> > properties and attributes?
> 
> My imperfect understanding is:
> 
> "attribute" is only used in an OO context and refers to the data members the
> class or object encapsulates.
> 
> "property" has nothing inherently to do with OO. Properties are tags against
> variables and values and are compile or run time specific. Hints to the
> compiler and interpreter...
Ok, any example of such a property....?

> > Also, how is the difference between a class variable and a object
> > variable?
> 
> Don't you mean class attribute and object attribute? The first is class-wide
> and accessible to all objects, whereas the latter is specific the object
> instance:

Ofcourse... you missunderstod me (I see now that my english wasn't very
good).  After I sent my mail the answer jumped up in my head so just
ignore this :)


/Erik

-- 
[EMAIL PROTECTED]
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32

Reply via email to