Attribute vs. Trait

Difference Between Attribute and Trait
Attributeverb
To regard as arising from a particular cause or source; ascribe
attributed their failure to a lack of preparation.Traitnoun
A distinguishing feature, as of a person's character.
Attributeverb
To regard (a work, for example) as belonging to or produced by a specified agent, place, or time
attributed the painting to Titian.attributed the vase to 18th-century Japan.Traitnoun
A morphological, physiological, or behavioral feature of an organism.
Attributenoun
A quality or characteristic inherent in or ascribed to someone or something.
Traitnoun
(Archaic) A short line or mark made with a writing or drawing implement.
Attributenoun
An object associated with and serving to identify a character, personage, or office
Lightning bolts are an attribute of Zeus.Traitnoun
an identifying characteristic, habit or trend
The number one personality trait I hate is hypocrisy. Why can't you be consistent!?Attributenoun
(Grammar) A word or phrase syntactically subordinate to another word or phrase that it modifies; for example, my sister's and brown in my sister's brown dog.
Traitnoun
(object-oriented) An uninstantiable collection of methods that provides functionality to a class by using the class’s own interface.
Traits are somewhat between an interface and a mixin, as an interface contains only method signatures, while a trait includes also the full method definitions. On the other hand, mixins include method definitions, but they can also carry state through attributes, while traits usually don't.Attributenoun
A characteristic or quality of a thing.
His finest attribute is his kindness.Traitnoun
a distinguishing feature of your personal nature
Attributenoun
(grammar) A word that qualifies a noun, a qualifier.
In the clause "My jacket is more expensive than yours", "My" is the attribute of "jacket".Attributenoun
(logic) That which is predicated or affirmed of a subject; a predicate; an accident.
Attributenoun
An option or setting belonging to some object.
This packet has its coherency attribute set to zero.A file with the read-only attribute set cannot be overwritten.Attributenoun
(programming) A semantic item with which a method or other code element may be decorated.
Properties can be marked as obsolete with an attribute, which will cause the compiler to generate a warning if they are used.Attributenoun
in a Nutshell (page 536)
Attributenoun
A numeric value representing the colours of part of the screen display.
Attributeverb
To ascribe (something) to a given cause, reason etc.
Attributeverb
To associate ownership or authorship of (something) to someone.
This poem is attributed to Browning.Attributenoun
a construct whereby objects or individuals can be distinguished;
self-confidence is not an endearing propertyAttributenoun
an abstraction belonging to or characteristic of an entity
Attributeverb
attribute or credit to;
We attributed this quotation to ShakespearePeople impute great cleverness to catsAttributeverb
decide as to where something belongs in a scheme;
The biologist assigned the mushroom to the proper class