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... > 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: obj.population vs obj.birthdate -- Garrett Goebel IS Development Specialist ScriptPro Direct: 913.403.5261 5828 Reeds Road Main: 913.384.1008 Mission, KS 66202 Fax: 913.384.2180 www.scriptpro.com garrett at scriptpro dot com
