trait

名词 n.
发音 trā

英文释义

名词 n.
  1. An identifying characteristic, habit or trend.
    — inherited traits and acquired traits
  2. 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.

词形变化

traits plural

词源

Borrowed from Middle French trait (“line, feature”), from Latin tractus (“drawing, pulling”), from Latin trahō. Doublet of tract.
0 次浏览 数据来源: Wiktionary