Moose (Perl) - Features - Attributes

Attributes

An attribute is a property of the class that defines it.

  • An attribute always has a name, and it may have a number of other defining characteristics.
  • An attribute's characteristics may include a read/write flag, a type, accessor method names, delegations, a default value and lazy initialization.

Read more about this topic:  Moose (Perl), Features

Famous quotes containing the word attributes:

    Why does not the kitten betray some of the attributes common to the adult puss? A puppy is but a dog, plus high spirits, and minus common sense. We never hear our friends say they love puppies, but cannot bear dogs. A kitten is a thing apart; and many people who lack the discriminating enthusiasm for cats, who regard these beautiful beasts with aversion and mistrust, are won over easily, and cajoled out of their prejudices, by the deceitful wiles of kittenhood.
    Agnes Repplier (1858–1950)

    True and false are attributes of speech not of things. And where speech is not, there is neither truth nor falsehood. Error there may be, as when we expect that which shall not be; or suspect what has not been: but in neither case can a man be charged with untruth.
    Thomas Hobbes (1588–1679)

    Even though fathers, grandparents, siblings, memories of ancestors are important agents of socialization, our society focuses on the attributes and characteristics of mothers and teachers and gives them the ultimate responsibility for the child’s life chances.
    Sara Lawrence Lightfoot (20th century)