On 3/23/10 6:58 AM, Ricardo Aráoz wrote: > John wrote: >> You know it's sort of a difficult thing to recall that if it's a Property it >> starts with an uppercase and when it's an attribute/method it's lower case. >> > > I'm confused here. I've googled and got even more confused. > I always thought attribute and property were synonyms for a variable > bound to a class and that a method was a procedure bound to a class. > But it would seem I am wrong. Any help here?
A method is a bound function. An attribute is a name in the class's namespace, accessible by referencing <classinstance>.<attributename>. A property is a special object you reference as if it were a simple attribute, but it actually gets the value from a "getter", and sets the value with a "setter". Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
